@sentiness/check-stryker
v0.1.2
Published
Sentiness check that reports surviving mutants and mutation score from StrykerJS.
Readme
@sentiness/check-stryker
Runs StrykerJS with JSON reporting and converts surviving or uncovered mutants into Sentiness
findings. The check also reports stryker.mutationScore as a higher-is-better metric for baseline
trend and ratcheting workflows.
Stryker Report Path
Sentiness reads the mutation report from one of these sources, in order:
checkConfig.reportPath— explicit path configured insentiness.config.json:{ "checks": { "stryker": { "enabled": true, "reportPath": "reports/mutation/mutation.json" } } }JSON config file — if
stryker.conf.jsonorstryker.config.jsonexists in the project root, Sentiness reads thejsonReporter.fileNameproperty from it:{ "jsonReporter": { "fileName": "reports/mutation/mutation.json" } }Default path —
reports/mutation/mutation.json(StrykerJS default).
Note for
.js/.mjs/.cjsconfigs: Sentiness does not execute JavaScript config files (security boundary). If your project usesstryker.conf.mjsorstryker.conf.cjs, use option 1 (checkConfig.reportPath) or create a companionstryker.conf.jsonalongside it.
Init Wizard Integration
When running sentiness init, the wizard detects stryker.conf.{js,mjs,cjs} and, if no JSON
companion is found, prompts for the report path and writes it as checks.stryker.reportPath in
sentiness.config.json.
