You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var spawn = require('child_process').spawn;
var gulp = require('gulp');
var gutil = require('gulp-util');
gulp.task('test', function () {
var tests = ['myTests.js'];
var casperChild = spawn('casperjs', ['test'].concat(tests));
casperChild.stdout.on('data', function (data) {
gutil.log('CasperJS:', data.toString().slice(0, -1));
});
casperChild.on('close', function (code) {
var success = code === 0; // Will be 1 in the event of failure
// Do something with success here
});
});
There's no reason for this to be a gulp plugin, and it doesn't directly deal with file objects, so it has been blacklisted:
gulpjs/plugins#185
There's not much you can do to make it a gulp plugin, either; if CasperJS had a programmatic API then you could use that, but they don't 😞
The text was updated successfully, but these errors were encountered: