|
Ran
|
Jobs
12
|
Files
1728
|
Run time
13min
|
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
12 of 14 new or added lines in 3 files covered. (85.71%)
7 existing lines in 3 files now uncovered.78498 of 97762 relevant lines covered (80.3%)
3.36 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
52.7 |
-0.44% | src/python/pants/backend/python/goals/pytest_runner.py |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
52.7 |
-0.44% | src/python/pants/backend/python/goals/pytest_runner.py |
| 3 |
81.25 |
-4.69% | src/python/pants/testutil/python_interpreter_selection.py |
| 3 |
67.14 |
-4.29% | src/python/pants/util/osutil.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | test_python_linux_x86_64_0/10 - 20318360133.1 | 1207 |
46.82 |
GitHub Action Run | |
| 2 | test_python_linux_x86_64_3/10 - 20318360133.2 | 1185 |
45.52 |
GitHub Action Run | |
| 3 | test_python_linux_x86_64_9/10 - 20318360133.3 | 1193 |
44.9 |
GitHub Action Run | |
| 4 | test_python_linux_x86_64_5/10 - 20318360133.4 | 1201 |
49.17 |
GitHub Action Run | |
| 5 | test_python_linux_x86_64_2/10 - 20318360133.5 | 1188 |
46.77 |
GitHub Action Run | |
| 6 | test_python_linux_x86_64_8/10 - 20318360133.6 | 1188 |
45.25 |
GitHub Action Run | |
| 7 | test_python_linux_x86_64_6/10 - 20318360133.7 | 1183 |
40.78 |
GitHub Action Run | |
| 8 | test_python_linux_x86_64_7/10 - 20318360133.8 | 1192 |
42.58 |
GitHub Action Run | |
| 9 | test_python_linux_x86_64_1/10 - 20318360133.9 | 1186 |
40.2 |
GitHub Action Run | |
| 10 | test_python_linux_x86_64_4/10 - 20318360133.10 | 1219 |
49.8 |
GitHub Action Run | |
| 11 | test_python_linux_arm64 - 20318360133.11 | 1170 |
43.08 |
GitHub Action Run | |
| 12 | test_python_macos14_arm64 - 20318360133.12 | 1170 |
43.09 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|