npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@stryker-mutator/jasmine-runner

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

install

npm i @stryker-mutator/jasmine-runner

Downloadsweekly downloads

25

version

2.1.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability