elixir-jasmine

0.0.5 • Public • Published

Laravel Elixir - Jasmine integration

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.

Example usage

var elixir = require('laravel-elixir');
 
require('elixir-jasmine');
 
elixir(function(mix) {
    var options = {};
 
    mix.jasmine(options);
 
});

API

mix.jasmine([options])

options

verbose

Type: boolean
Default: false

Display spec names in default reporter.

includeStackTrace

Type: boolean
Default: false

Include stack traces in failures in default reporter.

reporter

Type: object, array of objects

Reporters to use.

require('elixir-jasmine');
 
elixir(function(mix) {
    var options = {
     reporter: new reporters.JUnitXmlReporter()
     };
 
    mix.jasmine(options);
 
});

Creating your own reporter.

timeout

Type: number
Default 5000

Time to wait in milliseconds before a test automatically fails.

errorOnFail

Type: boolean
Default: true

Stops the stream on failed tests.

config

Type: object

Passes the config to Jasmine's loadConfig method.

Change log

0.0.4

  • added support for gulp watch

License

MIT © Kiril Grancharov

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

Package Sidebar

Install

npm i elixir-jasmine

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • melanholly