- It is documented here: https://stryker-mutator.io/docs/stryker-js/introduction
- It was previously just called Stryker, but then the framework grew to incorporate mutation testing for C# and and Scala programs as well, so they rebranded Stryker as Stryker-JS to avoid confusion.
Running Stryker on CS156 projects
- Make sure you are in the
frontenddirectory and have already done
npx stryker run
To do mutation testing on only a single file
If you know that all of your current changes are in a specific file, it is much faster to run mutation testing only on that single file instead of the entire project.
For example, if your changed file is
src/main/components/Nav/AppNavbar.js you can restrict stryker to this file by running:
npx stryker run -m src/main/components/Nav/AppNavbar.js
Table of contents
- Stryker: Excluding Code
- Stryker: console.log surviving mutants
- Stryker: html attribute surviving mutants