Beispiel #1
0
gulp.task('test', function() {
  var options = {clear: true, debug: false};

   gulp.src('tests/**/*.php')
       .pipe(codecept('', options))
       .on('error', notify.onError({
           title: 'Fail',
           message: 'Tests failed!',
           icon: __dirname + '/phpspec_red.png'
       }))
       .pipe(notify({
           title: 'Success',
           message: 'All tests have returned green!',
           icon: __dirname + '/phpspec_green.png'
       }));
});
Beispiel #2
0
gulp.task('codecept_unit', function() {
    var options = {clear: true, debug: true, testSuite: 'unit', flags: '-vvv'};
    gulp.src('./tests/unit/*.php').pipe(codecept('', options));
});