[TIP] [coverage] anyway to omit modules rather than files?
Chris Withers
chris at simplistix.co.uk
Thu Jan 26 23:57:53 PST 2012
On 26/01/2012 13:01, Ned Batchelder wrote:
>> $ bin/nosetests --with-cov --cov-report=term-missing
>> ...............................................................................................................................................................................................................................................................................................................................................................................
>>
>> ---------- coverage: platform darwin, python 2.7.2-final-0 -----------
>> Name Stmts Miss Branch BrPart Cover Missing
>> --------------------------------------------------------------------------------------
>>
>> testfixtures/__init__ 17 0 0 0 100%
>> testfixtures/comparison 244 0 124 0 100%
> <snip>
>
> Have you looked at the html report? It indicates missing lines in red
> and partial branches in yellow.
Wow, now that's cool :-)
Thanks for an awesome tool Ned!
(oh, and thanks to Mr Meme Dough for rolling it into a nice nose plugin!)
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
More information about the testing-in-python
mailing list