Skip to content

Commit

Permalink
Debug coverage with omit
Browse files Browse the repository at this point in the history
  • Loading branch information
foarsitter committed Feb 10, 2024
1 parent aee8eb0 commit 601ac64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def coverage(session: Session) -> None:
if not session.posargs and any(Path().glob(".coverage.*")):
session.run("coverage", "combine")

session.run("coverage", "debug", "config")
session.run("coverage", *args)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["requestmodel", "tests"]
omit = ["src/requestmodel/encoders.py"]
omit = ["src/requestmodel/encoders.py", '**/encoders.py']

[tool.coverage.report]
show_missing = true
Expand Down

0 comments on commit 601ac64

Please sign in to comment.