upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormerzleckeier <362449027+merzleckeier@users.noreply.github.com>2026-12-02 22:11:52 +0100
committermerzleckeier <362449027+merzleckeier@users.noreply.github.com>2026-12-02 22:11:52 +0100
commitacfda765c33b91c3f1a80a7004e9a34ebbb6977f (patch)
tree6e9b120323ff4427c1161ea4bd139c3b5e76cbab /docs
parent8877be372bac025153488fc56c2b6122f98ec44d (diff)
Include PowerShell changes in red-green mutations
Diffstat (limited to 'docs')
-rw-r--r--docs/testing.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 31ab93653..04cbff654 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -160,9 +160,9 @@ python -I scripts/red_green.py <pull request number>
160- `red does not build` is the case the fork-CI steps above call "does not build without the pull request's new 160- `red does not build` is the case the fork-CI steps above call "does not build without the pull request's new
161 file": the test needs the new code, which does not show that it catches the bug. 161 file": the test needs the new code, which does not show that it catches the bug.
162- `--mutate` also checks that the tests catch the change itself, what verifiers do by hand by removing a line of the 162- `--mutate` also checks that the tests catch the change itself, what verifiers do by hand by removing a line of the
163 fix. After the green side, it undoes each hunk of the pull request's code alone (Rust and Python files it changes, 163 fix. After the green side, it undoes each hunk of the pull request's Rust, Python and PowerShell code outside the
164 outside the tests and `#[cfg(test)]` code) and runs the tests again. A hunk is `caught` when a test that went red 164 tests and `#[cfg(test)]` code and runs the tests again. A hunk is `caught` when a test that went red then green
165 then green fails, `not caught` when they all still pass, `does not build` when those tests no longer run, 165 fails, `not caught` when they all still pass, `does not build` when those tests no longer run,
166 `compiler crashed` when the compiler crashed twice, or `does not apply` when `main` moved those lines since. Each 166 `compiler crashed` when the compiler crashed twice, or `does not apply` when `main` moved those lines since. Each
167 mutation starts from the green tree, reset and cleaned, so what a test writes into the tree changes no other. It 167 mutation starts from the green tree, reset and cleaned, so what a test writes into the tree changes no other. It
168 tries at most `--mutate-max` hunks (10) and lists the others as `not tried, past --mutate-max` 168 tries at most `--mutate-max` hunks (10) and lists the others as `not tried, past --mutate-max`
@@ -171,7 +171,7 @@ python -I scripts/red_green.py <pull request number>
171- Files the pull request adds are not mutated: undoing one would delete it, which only shows that something uses it. 171- Files the pull request adds are not mutated: undoing one would delete it, which only shows that something uses it.
172 The report lists them (`not mutated, added by the pull request`), so a fix whose code sits in a new file is not 172 The report lists them (`not mutated, added by the pull request`), so a fix whose code sits in a new file is not
173 read as covered. When no hunk is undone, the report says why: `nothing to undo` when the pull request changes no 173 read as covered. When no hunk is undone, the report says why: `nothing to undo` when the pull request changes no
174 Rust or Python code outside its tests (a test-only one, whose `no red` then says nothing against its test), or 174 Rust, Python or PowerShell code outside its tests (a test-only one, whose `no red` then says nothing against its test), or
175 `not run` when no test went red then green. `--json` has these in `mutations_not_run` and `added_not_mutated`. 175 `not run` when no test went red then green. `--json` has these in `mutations_not_run` and `added_not_mutated`.
176- Each command of a mutated run (`cargo test`, one Python test file) is stopped with the processes it started after 176- Each command of a mutated run (`cargo test`, one Python test file) is stopped with the processes it started after
177 `--mutate-timeout` seconds (600). The hunk is then `caught by timeout` when a test was running (the undone code 177 `--mutate-timeout` seconds (600). The hunk is then `caught by timeout` when a test was running (the undone code