This package has been deprecated

Author message:

Stryker v1 is released, but you're still using a 0.x version. This version is no longer maintained. Please use @stryker-mutator/jasmine-runner. See https://stryker-mutator.io/blog/2019-02-13/announcing-stryker-1-0 for the full migration guide.

stryker-jasmine-runner
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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-jasmine-runner locally within your project folder, like so:

npm i --save-dev stryker-jasmine-runner

Peer dependencies

The stryker-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-api

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).

Dependents (0)

Package Sidebar

Install

npm i stryker-jasmine-runner

Weekly Downloads

2

Version

0.4.1

License

Apache-2.0

Unpacked Size

88 kB

Total Files

65

Last publish

Collaborators

  • strykermutator-npa