Switch branches/tags
v0.5.9 v0.5.8 v0.5.7 v0.5.6 v0.5.5 v0.5.4 v0.5.3 v0.5.2 v0.5.1 v0.5.0 v0.4.5 v0.4.4 v0.4.3 v0.4.2 v0.4.1 v0.4.0 v0.3.2 v0.3.1 v0.3.0 v0.2.1 v0.2.0 v0.1.0 v0.0.0 stryker@0.24.2 stryker@0.24.1 stryker@0.24.0 stryker@0.23.0 stryker@0.22.4 stryker@0.22.3 stryker@0.22.2 stryker@0.22.1 stryker@0.22.0 stryker@0.21.1 stryker@0.21.0 stryker@0.20.1 stryker@0.20.0 stryker@0.19.4 stryker@0.19.3 stryker@0.19.2 stryker@0.19.1 stryker@0.19.0 stryker@0.18.2 stryker@0.18.1 stryker@0.18.0 stryker@0.17.2 stryker@0.17.1 stryker@0.17.0 stryker@0.16.0 stryker@0.15.6 stryker@0.15.5 stryker@0.15.4 stryker@0.15.3 stryker@0.15.2 stryker@0.15.1 stryker@0.15.0 stryker@0.14.1 stryker@0.14.0 stryker@0.13.0 stryker@0.12.0 stryker@0.11.2 stryker@0.11.1 stryker@0.11.0 stryker@0.10.3 stryker@0.10.2 stryker@0.10.1 stryker@0.10.0 stryker@0.9.3 stryker@0.9.2 stryker@0.9.1 stryker@0.9.0 stryker@0.8.0 stryker@0.7.0 stryker@0.6.7 stryker@0.6.6 stryker@0.6.4 stryker@0.6.3 stryker@0.6.2 stryker@0.6.0 stryker@0.6.0-2 stryker-webpack-transpiler@0.5.2 stryker-webpack-transpiler@0.5.1 stryker-webpack-transpiler@0.5.0 stryker-webpack-transpiler@0.4.0 stryker-webpack-transpiler@0.3.4 stryker-webpack-transpiler@0.3.3 stryker-webpack-transpiler@0.3.2 stryker-webpack-transpiler@0.3.1 stryker-webpack-transpiler@0.3.0 stryker-webpack-transpiler@0.2.0 stryker-webpack-transpiler@0.1.7 stryker-webpack-transpiler@0.1.6 stryker-webpack-transpiler@0.1.5 stryker-webpack-transpiler@0.1.4 stryker-webpack-transpiler@0.1.3 stryker-webpack-transpiler@0.1.2 stryker-webpack-transpiler@0.1.1 stryker-webpack-transpiler@0.1.0 stryker-typescript@0.11.3 stryker-typescript@0.11.2 stryker-typescript@0.11.1
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.vscode
src
test
testResources
.npmignore
.npmrc
CHANGELOG.md
LICENSE
README.md
package.json
tsconfig.json
tslint.json

README.md

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.