Merge pull request #1167 from manzoid/add-target-to-grunt-test-functional

add a `target` arg to `grunt test-functional`
This commit is contained in:
Hannah Wolfe 2013-10-22 14:45:37 -07:00
commit b76eeef27f

View File

@ -520,7 +520,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) {