mix juggernaut.compare (Juggernaut v0.4.0)

Copy Markdown View Source

Pairs the mutants of two runs by their stable key and reports status changes (the blocking class, killed in A and not killed in B on core code, whatever B's status, first), counts, scores, phase clock deltas and per-mutant duration deltas.

mix juggernaut.compare RUN_A RUN_B [--format human|json|markdown]
mix juggernaut.compare RUN --mutare REPORT.json [--allow-pending]

With --mutare, the baseline (A) is an imported mutation-testing-elements report (Mutare or Stryker) and B is the run. Report ids are run-local, so mutants pair by file, location, operator family and replacement; unpaired mutants are listed and scores are shown under both formulas (Stryker, which Juggernaut uses, and Mutare, which leaves NoCoverage out). A report with Pending mutants is refused unless --allow-pending. A Mutare kill with a statusReason is counted as killed and flagged in doubt.

Timeout kills, on either side, are scored as .juggernaut.exs says (timeouts): with :survived, a mutant A killed and B only timed out is a status change, and on core it is blocking.

Kills that only an integration test made (test_lanes) are counted on each side, and a mutant killed on both sides by a different test lane (a unit test in A, only an integration test in B, or the other way) is listed as a test lane change: not blocking, but a unit test that stopped catching it.

Options

  • --mutare REPORT.json - Compare with a Mutare (mutation-testing-elements) report instead of a second run.
  • --allow-pending - Accept an imported report with Pending mutants.
  • --format human|json|markdown - Output format. Default: human. Or set JUGGERNAUT_FORMAT.

Exit codes

  • 0 - compared (no gating)
  • 2 - unknown run, unreadable report, invalid configuration, or another usage error