Skip to content

Illustrate difference between coverage and mutation testing using stryker

Notifications You must be signed in to change notification settings

gpaciga/mutation-testing-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Illustrate difference between coverage and mutation testing using stryker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published