Give the test commands their own README section

This commit is contained in:
2026-11-10 11:24:44 +01:00
parent 41b91e2265
commit cfd3008615
5 changed files with 35 additions and 25 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ A trial checked that it keeps goal 1.1. It replayed the 6 latest first rounds th
2026-10-13, lilleman through todo item 108, implemented by claude. Serves goals 1.1 and 1.4. Coverage counts the lines a test runs, so a test without a meaningful assertion still raises it. A surviving mutant shows a test that would let behaviour break. Every mutant of an untested changed line survives, so mutation testing of the changed lines also shows what a coverage drop on them would. Coverage would also catch a deleted test; the stability reviewer sees one in the diff without it. Measuring coverage beside it would add cost without raising quality, so todo item 69 was dropped and `principles/technical-principles.md` replaced "Test coverage should not decline" with the mutant rule.
The reviewer limits each run to the changed lines, so its cost grows with the chunk. The tools are widely deployed, each with its own way to limit a run to a diff: cargo-mutants `--in-diff` (https://mutants.rs/in-diff.html), Infection `--git-diff-lines` (https://infection.github.io/guide/command-line-options.html), Stryker's mutation ranges (https://stryker-mutator.io/docs/stryker-js/configuration/). mutmut has no such option, so the reviewer mutates the changed files and keeps the mutants on changed lines. On 2026-10-13 mutmut 3 ran on this repo's `larv_review/rounds.py` in under two seconds, set up as README → "Tools" says.
The reviewer limits each run to the changed lines, so its cost grows with the chunk. The tools are widely deployed, each with its own way to limit a run to a diff: cargo-mutants `--in-diff` (https://mutants.rs/in-diff.html), Infection `--git-diff-lines` (https://infection.github.io/guide/command-line-options.html), Stryker's mutation ranges (https://stryker-mutator.io/docs/stryker-js/configuration/). mutmut has no such option, so the reviewer mutates the changed files and keeps the mutants on changed lines. On 2026-10-13 mutmut 3 ran on this repo's `larv_review/rounds.py` in under two seconds, set up as README → "Test" says.
The run has no time cap. Limiting it to the changed lines already bounds it by the chunk's size, and no published standard gives a cap to copy. Each run's wall time in the reviewer's report shows when the premise below fails.
+14
View File
@@ -1487,3 +1487,17 @@ Read most (opens and searches):
- `bin/git_cli/test_git_repo.py` 1
- `bin/test_env.py` 1
- `ci.sh` 1
## Reading cost, chunk 28ce38e83321, finished 2026-11-10T10:22:17Z
45353 new input tokens before the first commit.
Read most (opens and searches):
- `todo.md` 5
- `bin/rule_hook/test_rule_hook.py` 3
- `bin/rule_hook/override_log.py` 2
- `AGENTS.md` 1
- `CHANGELOG.md` 1
- `README.md` 1
- `docs/decisions.md` 1