Skip to content

Commit d15549c

Browse files
authored
Exclude conftest.py files from enforcing changed-code coverage (#6738)
* Exclude conftest.py files from enforcing changed-code coverage Avoid spurious CI failure due to missing coverage of changed conftest.py lines. conftest.py configures the pytest session. It is tricky and not worthwhile to ensure it is test-covered. * Typo - missing comma
1 parent 484df6f commit d15549c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev_tools/incremental_coverage.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from dev_tools import env_tools, shell_tools
2121

2222
IGNORED_FILE_PATTERNS = [
23+
r'^(.+/)?conftest\.py$',
2324
r'^dev_tools/.+', # Environment-heavy code.
2425
r'^.+_pb2(_grpc)?\.py$', # Auto-generated protobuf code.
2526
r'^(.+/)?setup\.py$', # Installation code.

0 commit comments

Comments
 (0)