All Projects → sindresorhus → Gulp Jasmine

sindresorhus / Gulp Jasmine

Licence: mit
Run Jasmine tests in Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Jasmine

Gulp Mocha
Run Mocha tests
Stars: ✭ 374 (+240%)
Mutual labels:  gulp-plugin, test-runner
Spectrum
A BDD-style test runner for Java 8. Inspired by Jasmine, RSpec, and Cucumber.
Stars: ✭ 142 (+29.09%)
Mutual labels:  jasmine, test-runner
Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+501.82%)
Mutual labels:  jasmine, test-runner
Karma
Spectacular Test Runner for JavaScript
Stars: ✭ 11,591 (+10437.27%)
Mutual labels:  jasmine, test-runner
Karmatic
🦑 Easy automatic (headless) browser testing with Jest's API, but powered by Karma & Webpack.
Stars: ✭ 1,178 (+970.91%)
Mutual labels:  jasmine, test-runner
Nodetyped
Node.js Express Startup Seed with ES6, Typescript, SCSS, EJS, Nodemon, Bootstrap 4, TSLint, TypeDoc
Stars: ✭ 69 (-37.27%)
Mutual labels:  jasmine
Springbootangularhtml5
♨️ Spring Boot 2 + Angular 11 + HTML5 router mode + HTTP interceptor + Lazy loaded modules
Stars: ✭ 89 (-19.09%)
Mutual labels:  jasmine
Meissa
Cross-platform Distributed Test Runner. Executes tests in parallel, time balanced on multiple machines.
Stars: ✭ 66 (-40%)
Mutual labels:  test-runner
Gulp Json Editor
A gulp plugin to edit JSON objects
Stars: ✭ 55 (-50%)
Mutual labels:  gulp-plugin
Auto Spies
Create automatic spies from classes
Stars: ✭ 106 (-3.64%)
Mutual labels:  jasmine
Gulp Ftp
[DEPRECATED] Upload files to an FTP-server
Stars: ✭ 100 (-9.09%)
Mutual labels:  gulp-plugin
Semaphore Ng2 Webpack
Stars: ✭ 81 (-26.36%)
Mutual labels:  jasmine
Vim Ultest
The ultimate testing plugin for (Neo)Vim
Stars: ✭ 70 (-36.36%)
Mutual labels:  test-runner
Gulp Ngmin
[DEPRECATED] Pre-minify AngularJS apps with ngmin
Stars: ✭ 89 (-19.09%)
Mutual labels:  gulp-plugin
Egeo
EGEO is the open-source UI library used to build Stratio's UI. It includes UI Components, Utilities, Services and much more to build user interfaces quickly and with ease. The library is distributed in AoT mode.
Stars: ✭ 69 (-37.27%)
Mutual labels:  jasmine
Gulp Vulcanize
Concatenate a set of Web Components into one file
Stars: ✭ 101 (-8.18%)
Mutual labels:  gulp-plugin
Gulp Markdown Pdf
Markdown to PDF
Stars: ✭ 56 (-49.09%)
Mutual labels:  gulp-plugin
Gulp Google Cdn
Replaces script references with Google CDN ones
Stars: ✭ 79 (-28.18%)
Mutual labels:  gulp-plugin
Angular Testing Workshop
Workshop material for Angular: Unit testing techniques.
Stars: ✭ 98 (-10.91%)
Mutual labels:  jasmine
Gulp Plugin Boilerplate
Boilerplate to kickstart creating Gulp plugins
Stars: ✭ 74 (-32.73%)
Mutual labels:  gulp-plugin

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].