Split out pre command
Co-authored-by: Bernát Gábor <690238+gaborbernat@users.noreply.github.com>
This commit is contained in:
parent
494ea59c84
commit
7c264ad4a5
5
tox.ini
5
tox.ini
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue