PHPUnit with gulp 3.5.0
Run PHPUnit with Gulp.
var gulp = require('gulp');
var sys = require('sys');
var gutil = require('gulp-util');
var exec = require('gulp-exec');
gulp.task('phpunit', function() {
gulp.src('./tests').pipe(
exec('phpunit --bootstrap tests/bootstrap.php -c tests/phpunit.xml tests/', function(error, stdout){
sys.puts(stdout);
return false;
})
);
});
gulp.task('watch', function () {
gulp.watch('**/*.php', ['phpunit']);
});
gulp.task('default', ['watch']);
Written by Marco Bunge
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#