|
Ran
|
Files
1170
|
Run time
1min
|
Badge
README BADGES
|
push
github
Add [pytest].allow_empty_test_collection option to skip empty test runs (#22948) Pytest returns exit code 5 when no tests are collected, e.g. when all tests in a file are deselected via `-k` filtering or excluded via markers. By default, pants treats this as a test failure. With `allow_empty_test_collection = true`, exit code 5 is handled by returning [TestResult.no_tests_found_in_batch()](https://github.com/pantsbuild/pants/blob/3a34d021c/src/python/pants/core/goals/test.py#L130-L145) instead, which skips the test run in the summary. Fixes #22668
25966 of 60262 relevant lines covered (43.09%)
0.43 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|