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

stryker-lab-runner

2.0.0 • Public • Published

Build Status Gitter

Stryker

Stryker Lab Runner

A plugin to use the Lab test runner in Stryker, the JavaScript mutation testing framework.

Install

Install stryker-lab-runner locally within your project folder:

npm i --save-dev stryker-lab-runner

Load the plugin

In order to use the stryker-lab-runner it must be loaded in the Stryker mutation testing framework via the Stryker configuration. The easiest way to achieve this, is not have a plugins section in your config file. That way, all node_modules starting with stryker- will be loaded.

Use the test runner

In order to use Lab as the test runner, you simply specify it in your config file:

module.exports = (config) => {
    config.set({
        files: ['test/**/*.js', {
            pattern: 'lib/**/*.js',
            included: false,
            mutated: true
        }],
        testRunner: 'lab',
        reporter: [
            'progress',
            'clear-text',
            'dots',
            'html',
            'event-recorder'
        ],
        coverageAnalysis: 'off',
        plugins: [
            'stryker-lab-runner',
            'stryker-html-reporter'
        ]
    });
};

Contributors

Steffen Leistner

License

MIT

install

npm i stryker-lab-runner

Downloadsweekly downloads

2

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability