Skip to content

v1.4.1

Choose a tag to compare

@KamilDzierbicki KamilDzierbicki released this 04 Aug 05:56
· 26 commits to main since this release
9fbdf6f

Bugfix release.

  • Parallel runs no longer report every mutant as survived (Killed: 0, score 0.0%) on projects whose test file reaches its source through $LOAD_PATH (a Rails app run with -Itest in RUBYOPT, for example). A preloaded worker starts once in the real project root, so Ruby absolutizes every -I/RUBYLIB entry against that directory; the forked child then changed into the shadow workspace but kept resolving require "test_helper" back to the original tree, which loaded the unmutated source. Each job now rewrites the $LOAD_PATH entries of the mirrored project root into the workspace. Only Minitest suites hit this in practice; serial runs and the spawn runner 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 raise and requires the run to fail. When it still passes, the run aborts as an infrastructure failure (exit code 3) 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