Coverage.py

We’re using Coverage.py to report the code coverage in Python projects.

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.

Makefile

To use the config in your project, use the following Makefile targets:

LINTER_CONFIGS = https://git.confirm.ch/confirm/development-guidelines/raw/master/configs

test-{SCOPE}:
    curl -sSfLo .coveragerc $(LINTER_CONFIGS)/coveragerc
    coverage run {TEST COMMAND}

test-coverage:
    coverage report -m