Skip to content
Illustrate difference between coverage and mutation testing using stryker
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
README.md
package-lock.json
package.json
stryker.conf.js

README.md

Mutation Testing Demo

This repo is meant to help demonstrate the limitations of "test coverage" as a metric and what mutation testing can add.

This code was originally used in a live presentation, but the code is simple enough that it is probably self-explanatory as a static example. See https://gerg.dev/mutation for a walkthrough.

Instructions

Requires Node 8.

Install dependencies:

npm i

Run tests:

npm run test

Run stryker:

npm run stryker

Coverage report will be here: coverage/lcov-report/index.html

Mutant report will be here: reports/mutation/html/index.html

You can’t perform that action at this time.