Report test coverage - mikec964/chelmbigstock GitHub Wiki
We want (in theory) all of our code to be tested. You can measure this with Coverage.py.
Install Coverage: pip install -U coverage
Measure coverage: coverage run chelmbigstock.py
Report coverage: coverage report -m
The docs are at http://nedbatchelder.com/code/coverage/.
When we tested our code, the report showed the coverage for the packages we had included. To exclude them, we added a file, .coveragerc, to the root of the project directory:
[report]
omit = *numpy*, *sklearn*, *scikit*