mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-02 20:59:06 +08:00
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:
8
tox.ini
8
tox.ini
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user