Run Python tests with the project's virtualenv.

Mutator's interpreter does not have the project installed, so the baseline failed before any mutant ran.
This commit is contained in:
Robert C. Martin
2026-10-02 10:29:11 -05:00
parent 4a9d0c0a5c
commit b35a9caf6f
3 changed files with 63 additions and 3 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ The baseline command has to pass before any mutant runs. A mutant's timeout is t
| Go | `go test -count=1` of the file's package | nearest `go.mod` |
| TypeScript | `npm test` | nearest `package.json` |
| Rust | `cargo test` | nearest `Cargo.toml` |
| Python | `python -m pytest`, or `unittest discover` | nearest project file |
| Python | the project's `.venv` or `venv` Python running `pytest`, or `unittest discover` | nearest project file |
Coverage is generated with crapper's commands unless `--use-existing-coverage` or `--no-coverage` is set. A file missing from the report is treated as uncovered, and the run says so.