Skip to content

Commit

Permalink
Mention number of errors found (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Feb 26, 2024
1 parent 9fc7cd0 commit 5e52042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_plus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
f"Test {item} has an id that does not match our safe pattern '{test_id_regex.pattern}' for use with a terminal.",
)
if errors:
msg = f"Failed run due to following issues being identified:\n{os.linesep.join(errors)}"
msg = f"Failed run due to following issues being identified:\n{os.linesep.join(errors)}\nTotal errors found: {len(errors)}"
raise pytest.UsageError(
msg,
)

0 comments on commit 5e52042

Please sign in to comment.