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 authored and Alexander Bokovoy committed 2021-05-25 16:45:37 +03:00
1 parent 9e15311803
commit 645f90a835
3 files changed
+5

No files matched your search

@@ -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 \
@@ -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 ; } || \
+3
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