diff --git a/.github/workflows/consumer_test.yml b/.github/workflows/consumer_test.yml index 15b15478..685e8dad 100644 --- a/.github/workflows/consumer_test.yml +++ b/.github/workflows/consumer_test.yml @@ -45,7 +45,7 @@ jobs: run: | set -o pipefail - .venv_docs/bin/python -m pytest -s -v src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log" + .venv_docs/bin/python -m pytest -s -vv src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log" env: FORCE_COLOR: "1" TERM: xterm-256color diff --git a/src/tests/test_consumer.py b/src/tests/test_consumer.py index 14adad1b..c57e700e 100644 --- a/src/tests/test_consumer.py +++ b/src/tests/test_consumer.py @@ -669,7 +669,7 @@ def test_and_clone_repos_updated(sphinx_base_dir: Path, pytestconfig: Config): # Printing a 'overview' table as a result print_result_table(results) - assert overall_success, ( - "Consumer Tests failed, see table for which commands specifically. " - "Enable verbosity for warning/error printouts" - ) + if not overall_success: + pytest.fail( + reason="Consumer Tests failed, see table for which commands specifically. " + )