Skip to content

Commit e97a674

Browse files
committed
Exclude test files from coverage report
The coverage report was incorrectly including files from the `tests/` directory, leading to a confusing and inaccurate summary. This can happen when `pytest-cov` runs in parallel mode, as it sometimes includes test files that import the code being measured.
1 parent a3f5b80 commit e97a674

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
concurrency = multiprocessing
33
parallel = true
44
branch = true
5+
omit =
6+
tests/*
57

68
[report]
79
precision = 1

0 commit comments

Comments
 (0)