coverage task

This commit is contained in:
Tyrel Souza 2021-11-04 23:03:52 -04:00
parent 360ce1196b
commit cfc2ccb89b
3 changed files with 8 additions and 0 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[html]
directory = coverage_html_report

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ env/
Session.vim
Session.nvim
__pycache__/
.coverage

View File

@ -11,6 +11,11 @@ def run(c):
def test(c):
c.run("pytest --cov=. *_tests.py")
@task(pre=[test])
def coverage(c):
c.run("coverage html")
c.run("xdg-open coverage_html_report/index.html")
@task
def black(c):