0.15.1 • Published 5 years ago

stryker-mocha-framework v0.15.1

Weekly downloads
493
License
Apache-2.0
Repository
github
Last release
5 years ago

Build Status NPM Node version Gitter

Stryker Mocha Framework

A plugin to speed up Mocha tests in Stryker, the JavaScript mutation testing framework.

This plugin makes it possible for Stryker to use coverageAnalysis: 'perTest', by providing the abstraction to select which individual test(s) to run. You might also be looking for the stryker-mocha-runner, which makes it possible to use the node-based Mocha test runner in stryker.

Install

Install stryker-mocha-framework locally within your project folder, like so:

npm i --save-dev stryker-mocha-framework

Peer dependencies

The stryker-mocha-framework is a plugin to use mocha for stryker as a test framework. As such, you should make sure you have the correct versions of its dependencies installed:

  • stryker-api
  • mocha

Configuring

You can either configure the mocha test framework using the command line or by providing it in the stryker.conf.js file. This README describes how to use the stryker.conf.js config file:

// Stryker.conf.js
module.exports = function (config) {
    config.set({
        ...
        testFramework: 'mocha',
        coverageAnalysis: 'perTest'
        ...
    });
}
0.15.1

5 years ago

0.15.0

5 years ago

0.14.0

5 years ago

0.13.3

5 years ago

0.13.2

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.5

6 years ago

0.12.4

6 years ago

0.12.3

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.3

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago