The NimbleOptions schema of .juggernaut.exs (see the configuration guide).
Every key is optional. Every nested group has default: [], so its own defaults fill
in when only some of its keys are given.
Options
:paths- Source roots to mutate (.exfiles). Each must exist. The default value is["lib"].:exclude(list ofString.t/0) - File globs never mutated. The default value is[].:test_paths- Where the tests are;:projectuses the Mix project's:test_paths. The default value is:project.:core- File globs or module patterns held tothresholds.core. The default value is[].:thresholds(keyword/0) - Score thresholds. The default value is[].:core- Minimum score of core mutants. The default value is100.:changed- Minimum score elsewhere. The default value is80.:per- Applychangedto each non-core file, or to the whole run. The default value is:file.
:no_coverage-:countscores NoCoverage as not killed;:failalso fails the gate. The default value is:count.:timeouts- How atimeoutkill is scored. The default value is:killed.:base(String.t/0) - Git ref the changed scope is measured against.JUGGERNAUT_BASEoverrides. The default value is"main".:workers- Pool size;:autoismin(8, max(1, div(schedulers, worker_schedulers))). The default value is:auto.:worker_schedulers(pos_integer/0) - Schedulers (+S) per worker. The default value is2.:spares(boolean/0) - Keep spare worker VMs parked with the project loaded (no app started, no database connection held), so a worker recycle or a boot-lane job skips starting a VM and loading the project. The default value istrue.:operators-:default,:all, or a non-empty list of operator families and categories. The default value is:default.:ignore_prefixes- Comment prefixes recognised as ignore directives. The default value is["juggernaut:ignore", "mutare:ignore"].:strict_ignores(boolean/0) - Ignore warnings become usage errors. The default value isfalse.:raw_calls- Calls whose arguments are never mutated:{Mod, :fun},{Mod, :fun, arity}or{Mod, :fun, arity, [positions]};Modmay be:*. The default value is[].:skip_calls- Calls never mutated, with their arguments and piped upstream. The default value is[].:arid_calls- Extra calls whose arguments the inner lane skips. The default value is[].:timeout(keyword/0) - Per-test and per-job deadlines. The default value is[].:multiplier- Times the recorded duration (greater than 1.0). The default value is3.0.:min_ms(pos_integer/0) - Lower bound in milliseconds. The default value is1000.
:test_lanes(keyword/0) - Which tests are integration tests. A mutant runs its unit tests first and its integration tests only when they all pass, so a mutant that only an integration test kills is reported apart (it still counts as killed). The default value is[].:integration(keyword/0) - The integration lane; every other test is a unit test. The default value is[].:tags(list ofatom/0) - A test with any of these tags set (@tag,@describetagor@moduletag, to anything butfalseornil). The default value is[:integration].:paths(list ofString.t/0) - A test in a file matching any of these globs. The default value is["test/integration/**"].:timeout(keyword/0) - The integration tests' deadlines; a key left out takes the top-leveltimeout's value. The default value is[].:multiplier- Times the recorded duration (greater than 1.0).:min_ms(pos_integer/0) - Lower bound in milliseconds.
:env- OS environment per worker as{name, template};${NAME}is the controller's value,{worker}the worker index orboot. The default value is[{"MIX_TEST_PARTITION", "${MIX_TEST_PARTITION}_jg{worker}"}].:worker_setup- Mix tasks run once per worker before the app starts. The default value is:test_alias.:lasting_supervisors(list ofatom/0) - Registered supervisors under which tests may leave state that is meant to last (a pool started on first use, such asReq.FinchSupervisor; sessions the app keeps): changes in their subtrees are not drift. The default value is[].:lasting_servers(list ofatom/0) - Project server modules whose state tests change but no later test reads (state keyed by each test's own fresh ids, a debug ring): a change in their state is not residue, so it neither recycles a probe worker nor sends a survivor to a fresh one. Never list a memo or cache. The default value is[].:connections(keyword/0) - The database connection budget the pool is sized within. The default value is[].:budget- Connections all workers may hold together;:nonesets no limit. The default value is:none.:per_worker- Connections one worker holds;:autois twiceworker_schedulers. The default value is:auto.
:cache(boolean/0) - Per-mutant result cache. The default value istrue.:cache_inputs- Files outsidepathsand the test paths that cached results rest on::tracked(every git-tracked file) or a list of globs. The default value is:tracked.:refuse_env- Environment variable name patterns that make a run refuse to start. The default value is:secrets.
Summary
Functions
Markdown documentation of every key.
The compiled NimbleOptions schema.
The regex source used for refuse_env: :secrets (case-insensitive).
Validates a keyword list, filling defaults.
Functions
@spec docs() :: String.t()
Markdown documentation of every key.
@spec schema() :: NimbleOptions.t()
The compiled NimbleOptions schema.
@spec secrets_pattern() :: String.t()
The regex source used for refuse_env: :secrets (case-insensitive).
@spec validate(keyword()) :: {:ok, keyword()} | {:error, NimbleOptions.ValidationError.t()}
Validates a keyword list, filling defaults.