[TIP] After upgrade to coverage 3.0.1, nosetests --with-coverage shows zero lines covered!

Augie Fackler lists at durin42.com
Fri Jul 10 09:01:05 PDT 2009


On Jul 9, 2009, at 4:02 PM, Ned Batchelder wrote:

> Oh, and if this is the stackoverflow question you meant:
> http://stackoverflow.com/questions/931248/coverage-not-showing-executed-lines-in-virtualenv
> , that problem was fixed in 3.0.  Maybe there's more to it than I  
> know...
>
> --Ned.
> http://nedbatchelder.com
>
> Matthew Wilson wrote:
>> I just upgraded to the 3.0.1 version of coverage.  Then I ran this
>> command to test some of my code:
>>
>> $ nosetests --with-coverage --cover-package bazman.shiftcontrollers
>> bazman/tests/controller_tests/test_shifttemplatecontrollers.py
>>
>> And the output showed ZERO lines covered.  So then I found a comment
>> at stackoverflow saying that somebody went back to the old version,
>> and all was well.  So I did that, and sure enough, I saw my coverage
>> again.

You're not using multiprocess in nose are you? That has a tendency to  
produce really unsettling results with coverage output.
FWIW, nose 0.11.1 and coverage 3.0.1 work fine here, including nose's  
HTML coverage output.

>>
>> I'll happily provide more details.
>>
>> Matt
>>
>>
>>
>>
>
> -- 
> Ned Batchelder, http://nedbatchelder.com
>
>
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python




More information about the testing-in-python mailing list