Skip to content

Instantly share code, notes, and snippets.

@agounaris
Created June 15, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agounaris/2aa805e265dd5a989f54 to your computer and use it in GitHub Desktop.
Save agounaris/2aa805e265dd5a989f54 to your computer and use it in GitHub Desktop.
gulp auto run test cases
var gulp = require('gulp'),
sys = require('sys'),
exec = require('child_process').exec;
gulp.task('phpunit', function() {
exec('phpunit', function(error, stdout) {
sys.puts(stdout);
});
});
gulp.task('default', function() {
gulp.watch('**/*.php', { debounceDelay: 2000 }, ['phpunit']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment