diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..8ce77580 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,6 @@ +[run] +omit = + epc_data/tests/* + epc_data/temp_inputs.py + epc_data/config.py + epc_data/__init__.py \ No newline at end of file diff --git a/README.md b/README.md index 629b9b28..492c9b31 100644 --- a/README.md +++ b/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 \ No newline at end of file +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 \ No newline at end of file diff --git a/pytest.ini b/pytest.ini index ed445f55..45c56659 100644 --- a/pytest.ini +++ b/pytest.ini @@ -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