2.0.0 • Published 8 years ago
stryker-lab-runner v2.0.0

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-runnerLoad 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
License
MIT