Add tests for the branches the first mutation run left alive.

This commit is contained in:
Robert C. Martin
2026-10-02 10:36:31 -05:00
parent 4909ad241b
commit ce3895211e
5 changed files with 600 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
"""Keep a mutant from launching coverage against the project under test.
`run()` falls through into `run_coverage` when a mutant skips the help return.
That would delete `target/coverage` and recurse into this suite.
"""
import pytest
@pytest.fixture(autouse=True)
def do_not_launch_project_coverage(monkeypatch):
monkeypatch.setattr("crapper.cli.run_coverage", lambda *_args, **_kwargs: None)