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

Ned Batchelder ned at nedbatchelder.com
Thu Jul 9 14:02:14 PDT 2009


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.
>
> I'll happily provide more details.
>
> Matt
>
>
>
>   

-- 
Ned Batchelder, http://nedbatchelder.com





More information about the testing-in-python mailing list