Code that runs while the app starts (the boot set) is judged on a fresh boot per
mutant, since a warm worker booted with every mutant off. mix juggernaut.advise says
where that and other fallbacks come from: each mutant's category (unit, startup,
integration), test files that behave unlike their lane (test_lanes), and seams, the
code changes that would let specific tests judge the code on a warm worker. For each
boot-set function it compares the warm and fresh results the runs recorded (a gate
run records both for every boot-set mutant; --verify samples more). When every pair
agrees a person may declare the function warm-safe:
mix juggernaut.advise --warm-safe MyApp.Limits.limit/1 --reason "checked against constants"
The declaration goes in .juggernaut.warm_safe.json (commit it). The inner and gate
lanes then settle that function's boot-set mutants warm; the release lane always boots
them fresh. It lapses when the function changes, waits for --ack on core code, and is
refused, like an ack, to an actor whose name starts with agent.
Tests that run ExUnit themselves
A test that calls ExUnit.run/0 (a conformance runner, say) inherits the ExUnit
configuration of the job it runs in, and Juggernaut sets only_test_ids and
max_failures there to run the job's tests. The nested run then runs only the job's
selection, and stops at its first failure. Give the nested run its own configuration
(ExUnit.configure/1 before it, and the old configuration put back after it).