Say in mutate-changes --help that mutmut counts only the code a test runs in its own process

This commit is contained in:
2026-11-11 19:40:13 +01:00
parent aa777819e8
commit 38c64c9f12
+2 -1
View File
@@ -10,7 +10,8 @@ or __tests__/ folder.
- .py: mutmut 3, in a scratch copy of the nearest folder above the file that holds a setup.cfg or a pyproject.toml, else of the
checkout's top. It mutates each function or method a changed line falls in, and counts the mutants on changed lines. The
folder's setup.cfg settings stay, but source_paths and also_copy are set, and pytest leaves out each test that fails without a
mutant; the report names their files. A pyproject.toml with a [tool.mutmut] section fails the run.
mutant; the report names their files. mutmut sees only the code a test runs in its own process, so a mutant that only a child
process reaches, such as a tool a test starts, shows as `no tests`. A pyproject.toml with a [tool.mutmut] section fails the run.
- .rs: cargo-mutants, with --in-diff.
- .cjs, .cts, .js, .jsx, .mjs, .mts, .ts, .tsx: Stryker, with --mutate on the changed lines.
- .php: Infection, with --git-diff-lines.