Skip to content

Commit 0cdee77

Browse files
committed
Trying fix for No data was collected. (no-data-collected)
1 parent e6a3df8 commit 0cdee77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ filterwarnings = [
3131
testpaths = ["tests", "patterns"]
3232
python_files = ["test_*.py", "*_test.py"]
3333
# Enable doctest discovery in patterns directory
34-
addopts = "--doctest-modules --randomly-seed=1234"
34+
addopts = "--doctest-modules --randomly-seed=1234 --cov=patterns --cov-report=term-missing"
3535
doctest_optionflags = ["ELLIPSIS", "NORMALIZE_WHITESPACE"]
3636
log_level = "INFO"
3737

3838
[tool.coverage.run]
3939
branch = true
4040
source = ["patterns"]
41+
# Ensure coverage data is collected properly
42+
relative_files = true
43+
parallel = true
44+
dynamic_context = "test_function"
45+
data_file = ".coverage"
4146

4247
[tool.coverage.report]
4348
# Regexes for lines to exclude from consideration

0 commit comments

Comments
 (0)