Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.vscode
src
test
testResources
.npmignore
.npmrc
CHANGELOG.md
LICENSE
README.md
package.json
tsconfig.json
tsconfig.src.json
tsconfig.test.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-mutator/jasmine-framework and jasmine-core into your project via npm:

$ npm install @stryker-mutator/jasmine-framework jasmine-core --save-dev

Note: @stryker-mutator/jasmine-framework only works with jasmine-core >= v2

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

$ npm install @stryker-mutator/core --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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.