Last active
August 29, 2015 13:56
-
-
Save brantb/8825297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# npm install gulp gulp-util gulp-mocha mocha coffee-script assert | |
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
mocha = require 'gulp-mocha' | |
gulp.task 'test', -> | |
gulp.src('test.coffee').pipe(mocha()).on('error', gutil.log) | |
gulp.task 'default', -> | |
gulp.watch('test.coffee', 'test').on('error', gutil.log) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('coffee-script/register'); | |
require('./gulpfile.coffee'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert = require 'assert' | |
describe 'A test', -> | |
it 'should not abort gulp.watch() when it fails', -> | |
value = 'foo' | |
expected = 'foo' # Change this after running gulp. | |
assert.equal expected, value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment