mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
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:
commit
b76eeef27f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user