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.