gulp-jasmine

WebJar for gulp-jasmine

License

License

MIT
Categories

Categories

ASM Application Layer Libs Bytecode Manipulation
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gulp-jasmine
Last Version

Last Version

2.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

gulp-jasmine
WebJar for gulp-jasmine
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/gulp-jasmine

Download gulp-jasmine

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gulp-jasmine/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gulp-jasmine</artifactId>
    <version>2.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-jasmine/
implementation 'org.webjars.npm:gulp-jasmine:2.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-jasmine/
implementation ("org.webjars.npm:gulp-jasmine:2.4.2")
'org.webjars.npm:gulp-jasmine:jar:2.4.2'
<dependency org="org.webjars.npm" name="gulp-jasmine" rev="2.4.2">
  <artifact name="gulp-jasmine" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gulp-jasmine', version='2.4.2')
)
libraryDependencies += "org.webjars.npm" % "gulp-jasmine" % "2.4.2"
[org.webjars.npm/gulp-jasmine "2.4.2"]

Dependencies

compile (5)

Group / Artifact Type Version
org.webjars.npm : jasmine jar [2.3.0,3)
org.webjars.npm : arrify jar [1.0.0,2)
org.webjars.npm : gulp-util jar [3.0.0,4)
org.webjars.npm : through2 jar [2.0.0,3)
org.webjars.npm : jasmine-terminal-reporter jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

gulp-jasmine

Run Jasmine 3 tests in Node.js

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

Install

$ npm install --save-dev gulp-jasmine

Usage

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

exports.default = () => (
	gulp.src('spec/test.js')
		// gulp-jasmine works on filepaths so you can't have any plugins before it
		.pipe(jasmine())
);

API

jasmine(options?)

options

Type: object

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 | object[]

Reporters to use.

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

exports.default = () => (
	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.

errorOnFail

Type: boolean
Default: true

Stops the stream on failed tests.

config

Type: object

Passes the config to Jasmine's loadConfig method.

events

jasmineDone

Emitted after all tests have been completed. For a discussion about why jasmineDone and not end nor finish, see pull request #71.

FAQ

Babel

Add require('babel-core/register'); to the top of your gulpfile.js. Make sure to read the Babel docs.

Versions

Version
2.4.2