Skip to content

alex-pollan/gulp-jasmine-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp task for jasmine-node

This is a very basic implementation of a gulp task for jasmine-node

Install

npm install gulp-jasmine-node --save-dev

Usage

var jasmineNode = require('gulp-jasmine-node');

gulp.task('test', function () {
    return gulp.src(['spec/**/*spec.js']).pipe(jasmineNode({
        timeout: 10000
    }));
});

Options

timeout - Time in milliseconds to wait for async tests

includeStackTrace - Ability to suppress stack trace

color - Indicates spec output should uses color to indicates passing (green) or failing (red) specs

var jasmineNode = require('gulp-jasmine-node');

gulp.task('test', function () {
    return gulp.src(['spec/**/*spec.js']).pipe(jasmineNode({
        timeout: 10000,
        includeStackTrace: false,
        color: false
    }));
});

For more information about writing unit test with jasmine-node see https://github.com/mhevery/jasmine-node

Changelog

1.0.7

  • Fixed a bug that prevented async tests to be finalized (done callback never called)

About

Gulp task for jasmine-node

Resources

License

Stars

Watchers

Forks

Packages

No packages published