In this repo, i used the lib stryker to applay some concepts of mutation tests.
To get success with the tests, you need to follow this steps
- Clone this repo.
- checkout on branch master
- Run the follow command:
npm i
- Run the test:
npm run test
- checkout on branch stryker
- Run the follow command:
npm install -g stryker-cli
, it will install stryker globally. - Run the mutation test:
stryker run
- checkout on branch kill-mutants
- Run the mutation test again:
stryker run
During the checkouts, look the diferences in 'index.test.js'
Some questions? Let me know, eliasreis54@gmail.com. =)