From 38c64c9f125b588b528ca7d31f03663a2b1c7127 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 11 Nov 2026 19:40:13 +0100 Subject: [PATCH] Say in mutate-changes --help that mutmut counts only the code a test runs in its own process --- bin/mutate_changes/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mutate_changes/main.py b/bin/mutate_changes/main.py index 1f0f38b9..aee424b3 100644 --- a/bin/mutate_changes/main.py +++ b/bin/mutate_changes/main.py @@ -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.