This package is just a warper for gulp-jasmine.
Install by
npm install elixir-jasmine --save-dev
Then require elixir-jasmine
in your gulpfile, and you can use mix.jasmine()
.
Pretty simple.
var elixir = require('laravel-elixir');
require('elixir-jasmine');
elixir(function(mix) {
var options = {};
mix.jasmine(options);
});
Type: boolean
Default: false
Display spec names in default reporter.
Type: boolean
Default: false
Include stack traces in failures in default reporter.
Type: object
, array
of objects
Reporters to use.
require('elixir-jasmine');
elixir(function(mix) {
var options = {
reporter: new reporters.JUnitXmlReporter()
};
mix.jasmine(options);
});
Type: number
Default 5000
Time to wait in milliseconds before a test automatically fails.
Type: boolean
Default: true
Stops the stream on failed tests.
Type: object
Passes the config to Jasmine's loadConfig method.
- added support for gulp watch
MIT © Kiril Grancharov