From c444cd5eb5f395402a66271be571989ae555bebb Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mon, 15 Jul 2024 11:41:22 -0400 Subject: [PATCH] use pytest-dist for make test3 --- test-requirements.txt | 2 ++ tox.ini | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 897624f3..a5279548 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,6 +6,8 @@ mock<=2.0.0 requests-mock coverage pytest +pytest-cov +pytest-xdist Cheetah3 psycopg2-binary python-multilib diff --git a/tox.ini b/tox.ini index d4776b76..3d9c004c 100644 --- a/tox.ini +++ b/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 =