A plugin to use the Lab test runner in Stryker, the JavaScript mutation testing framework.
Install stryker-lab-runner locally within your project folder:
npm i --save-dev stryker-lab-runner
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.
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'
]
});
};
MIT