From 645f90a835d8ba8080ffdd9a7a3f98f40a3ac550 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Thu, 28 Jan 2021 12:38:37 +0300 Subject: [PATCH] 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 Reviewed-By: Alexander Bokovoy --- ipatests/azure/scripts/azure-run-base-tests.sh | 1 + ipatests/azure/scripts/azure-run-integration-tests.sh | 1 + tox.ini | 3 +++ 3 files changed, 5 insertions(+) diff --git a/ipatests/azure/scripts/azure-run-base-tests.sh b/ipatests/azure/scripts/azure-run-base-tests.sh index fce1b7a04..e32a67db0 100755 --- a/ipatests/azure/scripts/azure-run-base-tests.sh +++ b/ipatests/azure/scripts/azure-run-base-tests.sh @@ -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 \ diff --git a/ipatests/azure/scripts/azure-run-integration-tests.sh b/ipatests/azure/scripts/azure-run-integration-tests.sh index 0a08c2e00..2042419cb 100755 --- a/ipatests/azure/scripts/azure-run-integration-tests.sh +++ b/ipatests/azure/scripts/azure-run-integration-tests.sh @@ -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 ; } || \ diff --git a/tox.ini b/tox.ini index 006e3f0dc..9eebd9b8d 100644 --- a/tox.ini +++ b/tox.ini @@ -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