felipegs / gulp-jasmine

Run Jasmine tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-jasmine Build Status

Run Jasmine tests with minijasminenode (Jasmine 2.0)

Issues with the output should be reported on the minijasminenode issue tracker.

Install

$ npm install --save-dev gulp-jasmine

Usage

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

gulp.task('default', function () {
	return gulp.src('spec/test.js')
		.pipe(jasmine());
});

API

jasmine(options)

options

reporter

Type: object, array of objects

Reporters to use.

var gulp = require('gulp');
var jasmine = require('gulp-jasmine');
var reporters = require('jasmine-reporters');

gulp.task('default', function () {
	return gulp.src('spec/test.js')
		.pipe(jasmine({
			reporter: new reporters.JUnitXmlReporter()
		}));
});

Creating your own reporter.

timeout

Type: number
Default 5000

Time to wait in milliseconds before a test automatically fails.

License

MIT © Sindre Sorhus

About

Run Jasmine tests

License:MIT License


Languages

Language:JavaScript 100.0%