[TIP] [coverage] anyway to omit modules rather than files?
chris at simplistix.co.uk
Wed Jan 25 10:23:42 PST 2012
On 25/01/2012 14:39, Ned Batchelder wrote:
>> Is there any way to specify modules to omit rather than files?
>> Figuring out the filespec and worrying about cross-platform specs
>> would then go away...
> Right now, only filename patterns are accepted for omit and include.
> Have you used "source"? It seems to do what people want most.
Unless I'm missing something, if I do:
...that will also include testfixtures.tests, which contains my unit
tests, and which I don't want covered.
Simplistix - Content Management, Batch Processing & Python Consulting
More information about the testing-in-python