Switch branches/tags
v0.5.9 v0.5.8 v0.5.7 v0.5.6 v0.5.5 v0.5.4 v0.5.3 v0.5.2 v0.5.1 v0.5.0 v0.4.5 v0.4.4 v0.4.3 v0.4.2 v0.4.1 v0.4.0 v0.3.2 v0.3.1 v0.3.0 v0.2.1 v0.2.0 v0.1.0 v0.0.0 stryker@0.29.2 stryker@0.29.1 stryker@0.29.0 stryker@0.28.0 stryker@0.27.1 stryker@0.27.0 stryker@0.26.2 stryker@0.26.1 stryker@0.26.0 stryker@0.25.1 stryker@0.25.0 stryker@0.24.2 stryker@0.24.1 stryker@0.24.0 stryker@0.23.0 stryker@0.22.4 stryker@0.22.3 stryker@0.22.2 stryker@0.22.1 stryker@0.22.0 stryker@0.21.1 stryker@0.21.0 stryker@0.20.1 stryker@0.20.0 stryker@0.19.4 stryker@0.19.3 stryker@0.19.2 stryker@0.19.1 stryker@0.19.0 stryker@0.18.2 stryker@0.18.1 stryker@0.18.0 stryker@0.17.2 stryker@0.17.1 stryker@0.17.0 stryker@0.16.0 stryker@0.15.6 stryker@0.15.5 stryker@0.15.4 stryker@0.15.3 stryker@0.15.2 stryker@0.15.1 stryker@0.15.0 stryker@0.14.1 stryker@0.14.0 stryker@0.13.0 stryker@0.12.0 stryker@0.11.2 stryker@0.11.1 stryker@0.11.0 stryker@0.10.3 stryker@0.10.2 stryker@0.10.1 stryker@0.10.0 stryker@0.9.3 stryker@0.9.2 stryker@0.9.1 stryker@0.9.0 stryker@0.8.0 stryker@0.7.0 stryker@0.6.7 stryker@0.6.6 stryker@0.6.4 stryker@0.6.3 stryker@0.6.2 stryker@0.6.0 stryker@0.6.0-2 stryker-webpack-transpiler@0.7.3 stryker-webpack-transpiler@0.7.2 stryker-webpack-transpiler@0.7.1 stryker-webpack-transpiler@0.7.0 stryker-webpack-transpiler@0.6.3 stryker-webpack-transpiler@0.6.2 stryker-webpack-transpiler@0.6.1 stryker-webpack-transpiler@0.6.0 stryker-webpack-transpiler@0.5.2 stryker-webpack-transpiler@0.5.1
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.vscode
src
tasks
test
testResources
.gitignore
.npmignore
.npmrc
CHANGELOG.md
LICENSE
README.md
example.png
package.json
protractor.conf.js
tsconfig.json

README.md

Build Status NPM Node version Gitter

Stryker HTML Reporter

An HTML Reporter for the JavaScript mutation testing framework Stryker

Example

Click on the image below to see a real-life example of a report generated from a test run on stryker itself!

example

Install

Install stryker-html-reporter from your project folder:

npm i --save-dev stryker-html-reporter

Configuring

You can either configure the html reporter from the stryker.conf.js file or from the command line. This readme describes how to do it via the config file.

Load the plugin

In order to use the stryker-html-reporter it must be loaded in the stryker mutation testing framework via the stryker configuration. Easiest is to leave out the plugins section from your config entirely. That way, all node_modules starting with stryker- will be loaded.

If you do descide to choose specific modules, don't forget to add 'stryker-html-reporter' to the list of plugins to load.

Use the reporter

In order to use the reporter, you must add 'html' to the reporters. For example: reporters: ['html', 'progress'].

Options

You can configure the html reporter by adding a htmlReporter object to your config.

htmlReporter.baseDir

Configure the base directory to write the html report to.

Full config example

// stryker.conf.js
exports = function(config){
    config.set({
        // ...
        reporters: ['html'], // You may also want to specify other reporters
        htmlReporter: {
            baseDir: 'reports/mutation/html' // this is the default
        },
        plugins: ['stryker-html-reporter'] // Or leave out the plugin list entirely to load all stryker-* plugins directly
        // ...
    });
}

Usage

Use Stryker as you normally would. The report will be available where you have configured it, or in the reports/mutation/html as a default. See https://stryker-mutator.io for more info.