Nibbling Perfect Macaroni

    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

    3

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • sleistner