Use this plugin to activate coverage report.
To install this plugin, you need to activate coverage-plugin with extra requirements :
$ pip install nose2[coverage-plugin]
Next, you can enable coverage reporting with :
$ nose2 --with-coverage
Or with this lines in unittest.cfg :
[coverage]
always-on = True
Default: | False |
---|---|
Type: | boolean |
Default: | [] |
---|---|
Type: | list |
Default: | |
---|---|
Type: | str |
Default: | [] |
---|---|
Type: | list |
The default configuration is equivalent to including the following in a unittest.cfg file.
[coverage]
always-on = False
coverage =
coverage-config =
coverage-report =
Measure coverage for filesystem path (multi-allowed)
Generate selected reports, available types: term, term-missing, annotate, html, xml (multi-allowed)
Config file for coverage, default: .coveragerc
Turn on coverage reporting