Skip to content

Instantly share code, notes, and snippets.

Forked from laracasts/Gulpfile.js
Last active August 29, 2015 14:27
What would you like to do?
PHPSpec auto-testing Gulpfile
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var notify = require('gulp-notify');
gulp.task('test', function() {
.pipe(phpspec('', { notify: true }))
.on('error', notify.onError({
title: 'Dangit',
message: 'Your tests failed!',
icon: __dirname + '/fail.png'
title: 'Success',
message: 'All tests have returned green!'
gulp.task('watch', function() {['spec/**/*.php', 'src/**/*.php'], ['test']);
gulp.task('default', ['test', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment