mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added .coveragerc file
This commit is contained in:
parent
5036f116c8
commit
d779cc1b4c
3 changed files with 28 additions and 2 deletions
6
.coveragerc
Normal file
6
.coveragerc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[run]
|
||||
omit =
|
||||
epc_data/tests/*
|
||||
epc_data/temp_inputs.py
|
||||
epc_data/config.py
|
||||
epc_data/__init__.py
|
||||
22
README.md
22
README.md
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue