use pytest-dist for make test3

This commit is contained in:
Mike McLean 2024-07-15 11:41:22 -04:00 committed by Tomas Kopecek
parent 6002373ff9
commit c444cd5eb5
2 changed files with 4 additions and 4 deletions

View file

@ -6,6 +6,8 @@ mock<=2.0.0
requests-mock
coverage
pytest
pytest-cov
pytest-xdist
Cheetah3
psycopg2-binary
python-multilib

View file

@ -36,7 +36,7 @@ commands_pre =
[testenv:py3]
deps =
-r{toxinidir}/test-requirements.txt
allowlist_externals = coverage3
allowlist_externals = coverage3,pytest
setenv =
{[testenv]setenv}
PYTHONPATH=.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/.:www/lib
@ -44,9 +44,7 @@ commands_pre =
{[testenv]commands_pre}
coverage3 erase --rcfile .coveragerc3
commands =
coverage3 run --rcfile .coveragerc3 --source . -m pytest {posargs}
coverage3 report --rcfile .coveragerc3
coverage3 html -d {toxinidir}/htmlcov/py3 --rcfile .coveragerc3
pytest -n auto --cov --cov-config .coveragerc3 --cov-report=html
[testenv:py2]
deps =