PR#2890: tests - Add support for running tox with specific test(s)

Merges #2890
https://pagure.io/koji/pull-request/2890

Fixes: https://pagure.io/koji/issue/2892
This commit is contained in:
Tomas Kopecek 2021-06-02 10:53:16 +02:00
commit 97a0ecd5a0

View file

@ -39,7 +39,7 @@ commands_pre =
{[testenv]commands_pre}
{envbindir}/coverage3 erase --rcfile .coveragerc3
commands =
{envbindir}/coverage3 run --rcfile .coveragerc3 --source . -m nose
{envbindir}/coverage3 run --rcfile .coveragerc3 --source . -m nose {posargs}
{envbindir}/coverage3 report --rcfile .coveragerc3
{envbindir}/coverage3 html -d {toxinidir}/htmlcov/py3 --rcfile .coveragerc3
@ -52,12 +52,12 @@ commands_pre =
{[testenv]commands_pre}
{envbindir}/coverage2 erase
commands =
{envbindir}/coverage2 run --source . -m nose \
{envbindir}/coverage2 run --source . -m nose {posargs:\
tests/test_builder tests/test_cli \
tests/test_plugins/test_runroot_builder.py \
tests/test_plugins/test_save_failed_tree_builder.py \
tests/test_plugins/test_runroot_cli.py \
tests/test_plugins/test_save_failed_tree_cli.py
tests/test_plugins/test_save_failed_tree_cli.py}
{envbindir}/coverage2 report
{envbindir}/coverage2 html -d {toxinidir}/htmlcov/py2