Skip to content

Commit

Permalink
add code coverage options (NVIDIA#934)
Browse files Browse the repository at this point in the history
Quality of life entry for exploring test coverage values.
  • Loading branch information
jmartin-tech committed Sep 30, 2024
2 parents fa887f8 + bd1ed45 commit cc88954
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ tests = [
"pytest>=8.0",
"requests-mock==1.12.1",
"respx>=0.21.1",
"pytest-cov>=5.0.0"
]
lint = [
"black==24.4.2",
Expand Down Expand Up @@ -116,3 +117,7 @@ filterwarnings = [
"ignore",
"default:::garak",
]

[tool.coverage.run]
source = ["./garak"]
omit = ["tests/*"]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ wn==0.9.5
pytest>=8.0
requests-mock==1.12.1
respx>=0.21.1
pytest-cov>=5.0.0
# lint
black==24.4.2
pylint>=3.1.0
Expand Down

0 comments on commit cc88954

Please sign in to comment.