add pytest coverage configuration

This commit is contained in:
magowiz 2021-11-27 18:47:43 +01:00
parent 1efa191771
commit d60c5eabfb
2 changed files with 5 additions and 0 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[run]
omit = tests/*

View File

@ -36,3 +36,6 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts] [tool.poetry.scripts]
mobilizon-reshare="mobilizon_reshare.cli.cli:mobilizon_reshare" mobilizon-reshare="mobilizon_reshare.cli.cli:mobilizon_reshare"
[tool.pytest.ini_options]
addopts = "--cov-config=.coveragerc --cov=. --cov-report html tests/"