pytest: Show extra summary information for all except passed tests

By default pytest reports in summary section about tests failures and errors.
It will be helpful to see skipped, xfailed and xpassed tests.

Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Stanislav Levin 2021-01-28 12:38:37 +03:00 committed by Alexander Bokovoy
parent 269c61a9a6
commit 3889d8654a
3 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,7 @@ if [ "$install_result" -eq 0 ] ; then
--logging-level=debug \
--logfile-dir="$IPA_TESTS_LOGSDIR" \
--verbose \
-ra \
--with-xunit \
$IPA_TESTS_ARGS \
$IPA_TESTS_TO_IGNORE \

View File

@ -16,6 +16,7 @@ tests_result=1
--logfile-dir="$IPA_TESTS_LOGSDIR" \
--with-xunit \
--verbose \
-ra \
$IPA_TESTS_ARGS \
$IPA_TESTS_TO_IGNORE \
$IPA_TESTS_TO_RUN && tests_result=0 ; } || \

View File

@ -59,3 +59,6 @@ ignore = E203, E402, E231, W503, E731, E741
max-line-length = 80
# exclude auto-generated remote plugins
exclude=.git,.venv,build,_build,rpmbuild,2_49,2_114,2_156,2_164
[pytest]
addopts = -ra -v