Skip to content

Commit

Permalink
Split out pre command
Browse files Browse the repository at this point in the history
Co-authored-by: Bernát Gábor <[email protected]>
  • Loading branch information
hynek and gaborbernat committed Jun 26, 2023
1 parent 494ea59 commit 7c264ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ install_command = python -Im pip install --no-compile {opts} {packages}
set_env =
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
PYTHONWARNINGS=d
commands =
python -c 'f = open("{env_site_packages_dir}/cov.pth", "w"); f.write("import coverage; coverage.process_startup()"); f.close()'
coverage run -m pytest {posargs:-n auto}
commands_pre = python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
commands = coverage run -m pytest {posargs:-n auto}


[testenv:coverage-report]
Expand Down

0 comments on commit 7c264ad

Please sign in to comment.