added .coveragerc file

This commit is contained in:
Khalim Conn-Kowlessar 2023-06-14 10:41:17 +01:00
parent 5036f116c8
commit d779cc1b4c
3 changed files with 28 additions and 2 deletions

6
.coveragerc Normal file
View file

@ -0,0 +1,6 @@
[run]
omit =
epc_data/tests/*
epc_data/temp_inputs.py
epc_data/config.py
epc_data/__init__.py

View file

@ -11,5 +11,25 @@ part of a larger application
# Folders
### epc_data/
This folder contains related to the reading and preparation of
epc data
epc data
# Testing
All tests can be run, against the configuration in pytest.ini running
```commandline
pytest
```
This will run the complete panel of tests and report on coverage in the locations specified
by the pytest.ini file.
To run tests in a specific service, e.g. inside of epc_data, simple run
```commandline
pytest epc_data
```
This will produce the test results and coverage reports

View file

@ -1,3 +1,3 @@
[pytest]
addopts = --cov-report term-missing --cov=epc_data/attributes --cov=epc_data/app.py
addopts = --cov-report term-missing --cov=epc_data
testpaths = epc_data/tests