Set up code coverage

This commit is contained in:
Ivan Habunek 2022-11-29 11:25:52 +01:00
parent a0353f9bbe
commit be0c5653af
No known key found for this signature in database
GPG key ID: CDBD63C43A30BB95
3 changed files with 7 additions and 2 deletions

3
.coveragerc Normal file
View file

@ -0,0 +1,3 @@
[run]
source=./toot
command_line=-m pytest

View file

@ -11,7 +11,9 @@ test:
pytest -v pytest -v
coverage: coverage:
py.test --cov=toot --cov-report html tests/ coverage erase
coverage run
coverage report
clean : clean :
find . -name "*pyc" | xargs rm -rf $1 find . -name "*pyc" | xargs rm -rf $1

View file

@ -1,7 +1,7 @@
coverage
keyring keyring
psycopg2-binary psycopg2-binary
pytest pytest
pytest-cov
pytest-xdist[psutil] pytest-xdist[psutil]
pyxdg pyxdg
pyyaml pyyaml