Skip to content

Commit

Permalink
- added "-x" to pytest single test arguments, to avoid wasting time
Browse files Browse the repository at this point in the history
  (and tokens on the errors) when using pytest-repeat;
  • Loading branch information
jaltmayerpizzorno committed Mar 6, 2024
1 parent e5b86b9 commit 4535da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverup/testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def measure_test_coverage(*, test: str, tests_dir: Path, pytest_args='', l
try:
# -qq to cut down on tokens
p = await subprocess_run((f"{sys.executable} -m slipcover --branch --json --out {j.name} " +
f"-m pytest {pytest_args} -qq --disable-warnings {t.name}").split(),
f"-m pytest {pytest_args} -qq -x --disable-warnings {t.name}").split(),
check=True, timeout=60)
if log_write:
log_write(str(p.stdout, 'UTF-8', errors='ignore'))
Expand Down

0 comments on commit 4535da0

Please sign in to comment.