diff options
| author | TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> | 2026-12-02 05:19:38 +0100 |
|---|---|---|
| committer | TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> | 2026-12-02 05:19:44 +0100 |
| commit | bf65aa4505aeccd8feb9bfca2c93a33d103747c8 (patch) | |
| tree | 79fceced2674c1df24690af079994e6f11885d40 /docs/testing.md | |
| parent | 673ac44a1bd5a8fc642c7ada4a8764fcaf497a37 (diff) | |
scripts: red_green.py skips a folder it cannot list, stops with the tree put back on a __pycache__ it cannot remove, and four smaller fixes (review)
drop_bytecode skips a folder it may not list (Python cannot import from it either). A __pycache__ it cannot remove is now a usage error naming it (exit 2), and any such error during a run puts the tree back on the base, where before the undone hunk stayed. --mutate-timeout must also be finite. In a mutated run, a Python test stopped while running outweighs a cargo build that was stopped. job_of says once on stderr when it has no job object. docs/testing.md: one line rewrapped.
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/testing.md b/docs/testing.md index 11b184ff4..31ab93653 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -164,9 +164,10 @@ python -I scripts/red_green.py <pull request number> | |||
| 164 | outside the tests and `#[cfg(test)]` code) and runs the tests again. A hunk is `caught` when a test that went red | 164 | outside the tests and `#[cfg(test)]` code) and runs the tests again. A hunk is `caught` when a test that went red |
| 165 | then green fails, `not caught` when they all still pass, `does not build` when those tests no longer run, | 165 | then green 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 tries at most `--mutate-max` hunks (10) and lists the others as `not tried, past | 167 | mutation starts from the green tree, reset and cleaned, so what a test writes into the tree changes no other. It |
| 168 | --mutate-max` (`mutations_skipped` in `--json`). A `not caught` hunk is code no new test looks at; it does not | 168 | tries at most `--mutate-max` hunks (10) and lists the others as `not tried, past --mutate-max` |
| 169 | change the verdict. | 169 | (`mutations_skipped` in `--json`). A `not caught` hunk is code no new test looks at; it does not change the |
| 170 | verdict. | ||
| 170 | - 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. |
| 171 | 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 |
| 172 | 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 |