[py-dev] pytest-cov options
meme dough
memedough at gmail.com
Wed Jun 9 12:13:09 CEST 2010
Hi,
The next version of coverage will be 3.4 and looks like it will
contain a (nice) backward incompatible change. It has include and
omit which are fnmatch patterns. Ned also mentioned that in addition
there may be able to specify the roots of source code (but I haven't
seen any code for this one yet).
For pytest-cov I am considering refining to the options below.
coverage reporting with distributed testing support:
--cov=pat include coverage for filename pattern (multi-allowed)
--cov-omit=pat exclude coverage for filename pattern (multi-allowed)
--cov-report=type type of report to generate: term, term-missing,
annotate, html, xml (multi-allowed)
--cov-combine-each for dist=each mode produce a single combined report
--cov-config-file=path
config file for coverage, default: .coveragerc
This seems to work nicely, though it means you always have to specify
like "my/source/root/*" for both --cov and --cov-omit. If the other
option added then I will probably add one more so that it is in line
with coverage.
I haven't committed yet and still playing but wanted to see if anyone
had any suggestions.
:)
More information about the Pytest-dev
mailing list