Skip to content

Commit

Permalink
Improve the error message when no tests collected
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Apr 2, 2024
1 parent 5404df3 commit 1c41659
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c41659

Please sign in to comment.