Answer stability round 1: 0 🔴, 8 🟡; tests for a 10, the ID order, five nearest, a numeric file name, render and a plan without a table, and a live mutation recipe

This commit is contained in:
2026-10-13 11:49:10 +02:00
parent b0e9d206a2
commit 4e07db755b
5 changed files with 36 additions and 16 deletions
+4 -4
View File
@@ -78,15 +78,15 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a
Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'`
To mutation-test a changed module, copy `bin/` to a scratch directory (`cp -r bin "$scratch"`): mutmut writes files beside its config. In the copy, name the module and its tests in a `setup.cfg`, as below for `larv_review/rounds.py`. Leave out each test class that starts a tool's launcher through `subprocess`: a mutated module fails to load in a process mutmut did not start.
To mutation-test a changed module, copy `bin/` to a scratch directory (`cp -r bin "$scratch"`): mutmut writes files beside its config. In the copy, name the module and its tests in a `setup.cfg`, as below for `score_outcomes/outcomes.py`. Leave out each test class that starts a tool's launcher through `subprocess`: a mutated module fails to load in a process mutmut did not start.
```ini
[mutmut]
source_paths=larv_review/rounds.py
source_paths=score_outcomes/outcomes.py
also_copy=.
pytest_add_cli_args_test_selection=larv_review/
pytest_add_cli_args_test_selection=score_outcomes/
pytest_add_cli_args=-k
not LarvReviewTool
not ScoreOutcomesTool
```
Then, in the copy: `uvx --with pytest 'mutmut>=3,<4' run && uvx --with pytest 'mutmut>=3,<4' results`, and `uvx --with pytest 'mutmut>=3,<4' show <mutant>` to see a mutant's change. The config keys are mutmut 3's.