mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
add a target
arg to grunt test-functional
The idea here is to slightly speed up test development by allowing you to specify a single test file to run.
This commit is contained in:
parent
f085be4128
commit
725d1541d7
@ -519,7 +519,9 @@ var path = require('path'),
|
||||
grunt.registerTask('spawn-casperjs', function () {
|
||||
var done = this.async(),
|
||||
options = ['host', 'noPort', 'port', 'email', 'password'],
|
||||
args = ['test', 'admin/', 'frontend/', '--includes=base.js', '--verbose', '--log-level=debug', '--port=2369'];
|
||||
args = ['test']
|
||||
.concat(grunt.option('target') || ['admin/', 'frontend/'])
|
||||
.concat(['--includes=base.js', '--verbose', '--log-level=debug', '--port=2369']);
|
||||
|
||||
// Forward parameters from grunt to casperjs
|
||||
_.each(options, function processOption(option) {
|
||||
|
Loading…
Reference in New Issue
Block a user