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

Ned Batchelder ned at nedbatchelder.com
Wed Jan 25 06:39:27 PST 2012

On 1/25/2012 2:22 AM, Chris Withers wrote:
> Hi Ned,
> Really liking the new .coveragerc!
> 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.


> cheers,
> Chris

More information about the testing-in-python mailing list