Skip to content

Commit f470c2a

Browse files
committed
Fix coverage reporting.
The previous commit added reporting on coverage in the tests/ directory, but accidentally excluded the src/ directory. This ensures the coverage report includes both.
1 parent 8dce3f4 commit f470c2a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

noxfile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ def tests_with_coverage(session: nox.Session) -> None:
7878
"-Im",
7979
"coverage",
8080
"run",
81-
"--source",
82-
PACKAGE_NAME,
83-
"--source",
84-
"tests/",
8581
"-m",
8682
"pytest",
8783
"-m",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fail_under = 100
6767
[tool.coverage.run]
6868
branch = true
6969
parallel = true
70-
source = ["akismet"]
70+
source = ["akismet", "tests"]
7171

7272
[tool.interrogate]
7373
fail-under = 100

0 commit comments

Comments
 (0)