Helpful PHPSpec Gulp tasks
npm install gulp-cm-phpspec-tasksHelpful PHPSpec Gulp tasks
$ npm install --save-dev gulp-cm-phpspec-tasks
In your gruntfile.js…
var phpspecTasks = require('gulp-cm-phpspec-tasks');
var phpspecNamespace = 'Your\\Custom\\Namespace\\';
phpspecTasks.addTasks(gulp, phpspecNamespace, [options]);
Sets the PHPSpec binary path, relative to the project root.
The following tasks are added by the package…
Runs phpspec desc , and shows a notification if the tests fail.
phpspec runWatches spec//Spec.php and src//.php files and runs the phpspec task each time they change.
1. Add task to automatically generate phpspec.yml.dist file with namespace
1. Improve watcher to only run tests associated with changed file