Repository navigation
v1.4.1
Bugfix release.
- Parallel runs no longer report every mutant as survived (
Killed: 0, score0.0%) on projects whose test file reaches its source through$LOAD_PATH(a Rails app run with-ItestinRUBYOPT, for example). A preloaded worker starts once in the real project root, so Ruby absolutizes every-I/RUBYLIBentry against that directory; the forked child then changed into the shadow workspace but kept resolvingrequire "test_helper"back to the original tree, which loaded the unmutated source. Each job now rewrites the$LOAD_PATHentries of the mirrored project root into the workspace. Only Minitest suites hit this in practice; serial runs and thespawnrunner were never affected. - The shadow-workspace sanity check now also proves that the workspace copy of the source is the code the tests execute: after the unmutated source passes there, the check replaces that copy with a
raiseand requires the run to fail. When it still passes, the run aborts as an infrastructure failure (exit code3) instead of reporting a complete-looking 0.0% score. - The console summary warns when a file with at least five scored mutants killed none of them.
What's Changed
- fix: Parallel runs report every mutant as survived when the test file resolves its source through $LOAD_PATH by @KamilDzierbicki in #3
Full Changelog: v1.4.0...v1.4.1