A basic gulp plugin for vows.js, leaning on vows's test runner.
gulp-vows takes an options object with the following options
String: Name of vows's custom reporters. One of:
- dot-matrix (default)
- spec
- json
- tap
- slient
- reporter:
boolean: Shuffle order of test suites.
boolean: Verbose output. (unstable)
boolean: Throw an error if any tests fail
@todo: to be implemented
@todo: to be implemented (launch suites in parallel, at the cost of reporting results)
Gulp task
gulp.task('task', function(){
return gulp.src('test/**/*.spec.js')
.pipe(vows({reporter: 'spec'}));
});
Test suite (export test suite)
var vows = require('vows'),
assert = require('assert');
vows.describe('A good suite').addBatch({
'when all contexts': {
topic: function() {return true;},
'are valid': {
assert.equal(topic, true);
}
}
}).export(module);
Proper testing, documentation, aforementioned features
MIT