Configure coverage
To be run with 'pytest --cov --cov-report=html'.
This commit is contained in:
parent
34f576ea0f
commit
2d2c389bdb
3
.coveragerc
Normal file
3
.coveragerc
Normal file
|
@ -0,0 +1,3 @@
|
|||
[run]
|
||||
include =
|
||||
check_patroni/*
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@ tests/config.ini
|
|||
vagrant/.vagrant
|
||||
vagrant/*.state_file
|
||||
.*.swp
|
||||
.coverage
|
||||
.venv/
|
||||
.tox/
|
||||
dist/
|
||||
|
|
|
@ -66,7 +66,7 @@ Running the tests,
|
|||
* manually:
|
||||
|
||||
```bash
|
||||
pytest tests
|
||||
pytest --cov tests
|
||||
```
|
||||
|
||||
* or using tox:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,6 +4,7 @@ isort
|
|||
flake8
|
||||
mypy==0.961
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-mock
|
||||
types-requests
|
||||
setuptools
|
||||
|
|
Loading…
Reference in a new issue