Skip to content

Commit f9fdd76

Browse files
committed
Test coverage command
1 parent 3f9b44b commit f9fdd76

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ shell = "rm -r tests/output_* && cp -r ../python-betterproto2-compiler/tests/out
9696
cmd = "pytest"
9797
help = "Run tests"
9898

99+
[tool.poe.tasks.test-cov]
100+
cmd = "pytest --cov=betterproto2 --cov-report=term --cov-report=html tests/"
101+
help = "Run tests with code coverage report"
102+
99103
[tool.poe.tasks.typecheck]
100104
cmd = "pyright src"
101105
help = "Typecheck the code with Pyright"

0 commit comments

Comments
 (0)