Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including stryker-jasmine with all npm packages installed. Try it out:

require("jasmine-core/package.json"); // jasmine-core is a peer dependency. var strykerJasmine = require("stryker-jasmine")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

stryker-jasmine v0.12.1

A plugin to use the Jasmine test framework in Stryker, the JavaScript mutation testing framework

Build Status NPM Node version Gitter

Stryker

Stryker Jasmine

A plugin to use the Jasmine test framework in Stryker, the JavaScript mutation testing framework.

This plugin provides beforeEach, afterEach and filter hooks to Stryker, so you are able to use coverageAnalysis: 'perTest' with jasmine.

Installation

Install stryker-jasmine and jasmine-core into your project via npm:

$ npm install stryker-jasmine jasmine-core --save-dev

Note: stryker-jasmine only works with jasmine-core >= v2

Since stryker-jasmine is a plugin for Stryker, you likely have it installed already, but in case you don't:

$ npm install stryker stryker-api --save-dev

Configuration

Set the testFramework setting to 'jasmine' in your stryker config file.

// stryker.conf.js
module.exports = function(config) {
  config.set({
    testFramework: 'jasmine',
  });
};

You can also pass --testFramework jasmine as command line argument when running stryker.

See the Stryker main readme for more information on how to choose the (test) files and other options.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free