Configure coverage

To be run with 'pytest --cov --cov-report=html'.
This commit is contained in:
Denis Laxalde 2023-10-03 15:20:12 +02:00
parent 34f576ea0f
commit 2d2c389bdb
5 changed files with 7 additions and 1 deletions

3
.coveragerc Normal file
View file

@ -0,0 +1,3 @@
[run]
include =
check_patroni/*

1
.gitignore vendored
View file

@ -4,6 +4,7 @@ tests/config.ini
vagrant/.vagrant
vagrant/*.state_file
.*.swp
.coverage
.venv/
.tox/
dist/

View file

@ -66,7 +66,7 @@ Running the tests,
* manually:
```bash
pytest tests
pytest --cov tests
```
* or using tox:

View file

@ -2,6 +2,7 @@ include *.md
include mypy.ini
include pytest.ini
include tox.ini
include .coveragerc
include .flake8
include pyproject.toml
recursive-include docs *.sh

View file

@ -4,6 +4,7 @@ isort
flake8
mypy==0.961
pytest
pytest-cov
pytest-mock
types-requests
setuptools