Answer stability round 1: 1 🔴, 2 🟡 (0 misread); no outcomes file means no mutant, two tests use subTest, and a test's name fits its assertion
This commit is contained in:
@@ -45,7 +45,8 @@ def run_cargo_mutants(top: str, base: str, paths: list[str], run: Run, git: Git,
|
||||
|
||||
|
||||
def cargo_mutants_out(top: str, scratch: str, arguments: list[str], run: Run, jobs: int) -> pathlib.Path | Failure:
|
||||
"""The `mutants.out` folder that `cargo mutants <arguments>`, which runs in top, writes in scratch, a folder in top."""
|
||||
"""Run `cargo mutants <arguments>` in top, and return the `mutants.out` folder it writes. That folder is in scratch, which is a
|
||||
folder in top."""
|
||||
ran = run(["cargo", "mutants", *arguments, "--output", os.path.relpath(scratch, top), "--jobs", str(jobs)], top)
|
||||
if isinstance(ran, Failure) or ran.code not in CARGO_FINISHED:
|
||||
return ran if isinstance(ran, Failure) else failed("cargo mutants", ran)
|
||||
|
||||
Reference in New Issue
Block a user