use pytest-dist for make test3
This commit is contained in:
parent
6002373ff9
commit
c444cd5eb5
2 changed files with 4 additions and 4 deletions
|
|
@ -6,6 +6,8 @@ mock<=2.0.0
|
|||
requests-mock
|
||||
coverage
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-xdist
|
||||
Cheetah3
|
||||
psycopg2-binary
|
||||
python-multilib
|
||||
|
|
|
|||
6
tox.ini
6
tox.ini
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue