Tests: improve reporting when running with tox

Generate a short report at the end of each test run and a self-contained
HTML report, too.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
Hunor Csomortáni
2019-12-06 12:11:15 +01:00
parent 19f0e9ad83
commit 30215a1ac5
2 changed files with 8 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ deps =
kobo
koji
pytest
pytest-html
pytest-xdist
PyYAML
requests
@@ -81,4 +82,9 @@ deps =
# if the instance tested has a self-signed certificate.
passenv = REQUESTS_CA_BUNDLE MBS_TEST_CONFIG MBS_TEST_WORKERS HOME
commands =
pytest -vv --confcutdir=tests/integration -n {env:MBS_TEST_WORKERS:0} {posargs:tests/integration}
pytest -rA -vv \
--confcutdir=tests/integration \
-n {env:MBS_TEST_WORKERS:0} \
--html=report.html \
--self-contained-html \
{posargs:tests/integration}