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
typings
.npmrc
CHANGELOG.md
README.md
package.json
tsconfig.json
tsconfig.src.json
tsconfig.test.json

README.md

Build Status NPM Node version Gitter

Stryker Jasmine Runner

A plugin to use Jasmine as a test runner for node in Stryker, the JavaScript mutation testing framework.

Install

Install @stryker-mutator/jasmine-runner locally within your project folder, like so:

npm i --save-dev @stryker-mutator/jasmine-runner

Peer dependencies

The @stryker-mutator/jasmine-runner is a plugin for stryker to enable jasmine as a test runner. As such, you should make sure you have the correct versions of its dependencies installed:

  • jasmine
  • @stryker-mutator/core

Configuring

You can configure the jasmine test runner in the stryker.conf.js file.

// stryker.conf.js
module.exports = function (config) {
    config.set({
        // ...
        // not required, but boosts performance
        coverageAnalysis: 'perTest', 
        // not required, but will allow you to use coverageAnalysis "perTest". Note: This requires `stryker-jasmine` to also be installed.
        testFramework: 'jasmine', 
        testRunner: 'jasmine',
        jasmineConfigFile: 'spec/support/jasmine.json'
        // ...
    });
}

jasmineConfigFile [string]

Default: undefined

Specify your jasmine configuration file to be loaded. Leaving this blank will result in the jasmine defaults, which are undocumented (see source code here).

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.