[TIP] [coverage] anyway to omit modules rather than files?

Chris Withers chris at simplistix.co.uk
Wed Jan 25 10:23:42 PST 2012


Hi Ned,

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:

source=testfixtures

...that will also include testfixtures.tests, which contains my unit 
tests, and which I don't want covered.

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk



More information about the testing-in-python mailing list