The gate (design notes §10.7): a run's counts, scores and verdict from its mutants and results.
Score = killed / (killed + survived + no_coverage) × 100, nil when nothing is
scored. Under timeouts: :survived a kill of kind timeout counts as survived. A
kill that only an integration test made counts as killed, and is counted apart too
(counts.integration_only).
Scores are shown rounded down to one decimal, so a score never looks better than it
is; rules compare the exact value.
Rules, each a failure in the summary:
:core- each file's core mutants scored at leastthresholds.core(default 100);:changed- each file's other mutants (per: :file), or all of them together (per: :run), scored at leastthresholds.changed;:no_coverage- underno_coverage: :fail, every mutant no test covers;:incomplete- mutants leftpending(--fail-fast,--max-mutants,--budget).
Verdict and exit code: any harness_error → :error, 3 (survivors are still
reported); else any pending → :incomplete, 1; else any failure → :fail, 1; else
:pass, 0. The inner lane is advisory: it says so (advisory?), with the same exit
codes.
Summary
Functions
Whether the gate has already failed whatever the mutants still to run do: the rules
fail even if every mutant without a result were killed. --fail-fast stops there.
The summary of mutants and their results (by mutant id; a mutant without a result
is pending). Options: :lane (default :gate), :wall_ms (0).
Functions
@spec failed_already?( [Juggernaut.Mutant.t()], %{required(String.t()) => Juggernaut.Result.t()}, Juggernaut.Config.t() ) :: boolean()
Whether the gate has already failed whatever the mutants still to run do: the rules
fail even if every mutant without a result were killed. --fail-fast stops there.
@spec summarize( [Juggernaut.Mutant.t()], %{required(String.t()) => Juggernaut.Result.t()}, Juggernaut.Config.t(), keyword() ) :: Juggernaut.Summary.t()
The summary of mutants and their results (by mutant id; a mutant without a result
is pending). Options: :lane (default :gate), :wall_ms (0).