Skip to content

Commit a9dd4e4

Browse files
pavoljuhasBichengYing
authored andcommitted
Exclude conftest.py files from enforcing changed-code coverage (quantumlib#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 eee7b9a commit a9dd4e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev_tools/incremental_coverage.py

Lines changed: 1 addition & 0 deletions
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)