Skip to content

Instantly share code, notes, and snippets.

@chrisforrette
Created August 19, 2014 16:29
Show Gist options
  • Save chrisforrette/ad6dd1206aadd242cc7b to your computer and use it in GitHub Desktop.
Save chrisforrette/ad6dd1206aadd242cc7b to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var mocha = require('gulp-mocha-phantomjs');
var server = require('gulp-webserver');
// Run tests in the command line
gulp.task('test', function() {
return gulp.src('./datu_dashboard/static/test/index.html')
.pipe(mocha({
reporter: 'dot'
}));
});
// Serve test in-browser at http://localhost:9000/test/index.html
gulp.task('serve-test', function () {
gulp.src('./datu_dashboard/static')
.pipe(server({
livereload: true,
port: 9000
}));
});
gulp.task('default', ['test']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment