Coverage.py#
We’re using Coverage.py to report the code coverage in Python projects.
Coverage.py config#
Please have a look at the Coverage.py config for all configured options.
Hint
To see all available configuration options, have a look at the Coverage.py documentation.
Coverage.py makefile#
To use the config in your project, use the following Makefile
targets:
LINTER_CONFIGS = https://git.confirm.ch/confirm/guidelines/raw/master/configs
test-{SCOPE}:
curl -sSfLo .coveragerc $(LINTER_CONFIGS)/coveragerc
coverage run {TEST COMMAND}
test-coverage:
coverage report -m