Swift edition
mutastic baseline
Record every mutant missed now, so later misses are told from them. Runs the mutants and writes each one missed or not covered, by id, to .mutastic/baseline.yaml in the package's directory, to commit. From then on a miss that isn't in it is new: gate holds only new misses, next offers them first, and run --fail-on-new fails only on them. It's never rewritten to take in new misses: --prune runs the mutants and drops the baseline's that are caught now.
Usage
mutastic baseline [DIR]A coding agent's hooks run it as the command: the build plugins don't.
Exit status
0 when the baseline is written or pruned; 1 when there's one already and --prune isn't given, or --prune is given and there's none. Any command exits 2 when mutastic couldn't run: see exit codes.
Options
--workers=N
How many mutants run side by side; half the cores, from 1 to 4, unless set.
| Command line | --workers=N |
|---|
--confirm-catches
Run each catching test again on its own, to confirm the catch.
| Command line | --confirm-catches |
|---|
--exclude-tests=TEST
A test to leave out of the run, by its name as a run shows it, or a module of tests by its path: one that can't run reliably here, with a race or a fixed port; the summary names it, and says so of a name that matches no test. mutastic.yaml's exclude-tests: leaves one out of every run, with its reason.
| Command line | --exclude-tests=TEST |
|---|
--build-system=BUILD
Which build a directory with both a Package.swift and an Xcode project uses: the one with tests unless set, and a refusal when both have them.
One of swiftpmxcode
| Command line | --build-system=BUILD |
|---|
--scheme=SCHEME
The Xcode scheme whose tests a run uses, for a project or workspace with several: the only one with tests for macOS or iOS unless set.
| Command line | --scheme=SCHEME |
|---|
--operators=OPERATORS
Which operators run: a set (defaults, stronger, extended or all), an operator's id or namespace, or any with - in front to leave it out, in place of mutastic.yaml's operators; defaults unless set.
| Command line | --operators=OPERATORS |
|---|
--progress=STYLE
Progress on stderr: redrawn in place on a terminal, a line every 30 s in logs, CI and agents' runs, or none.
One of autobarcounternone
| Command line | --progress=STYLE |
|---|---|
| Environment | MUTASTIC_PROGRESS |
--prune
Take away every ignore whose line has changed; with baseline, every mutant the tests catch now.
| Command line | --prune |
|---|