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:
Tim Mansfield 2013-10-18 17:13:07 -07:00
parent f085be4128
commit 725d1541d7

View File

@ -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) {