diff --git a/pyproject.toml b/pyproject.toml index fdee7aeea..f04d6cd26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -116,3 +117,7 @@ filterwarnings = [ "ignore", "default:::garak", ] + +[tool.coverage.run] +source = ["./garak"] +omit = ["tests/*"] diff --git a/requirements.txt b/requirements.txt index fcdaf195e..266029e5f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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