From 1c41659487ed2db11b8dc11e762f0ec331b5e8b6 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Tue, 2 Apr 2024 12:35:31 -0600 Subject: [PATCH] Improve the error message when no tests collected --- tests/integration/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index c3c837de..a3702970 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -12,6 +12,7 @@ def pytest_sessionfinish(session, exitstatus): raise RuntimeError( "Failed to initialize tests. Couldn't calculate acceptable failure rate" " because no tests were collected." + " This can happen if credential envvars are not populated." ) failure_rate = (100.0 * session.testsfailed) / session.testscollected