[TIP] Coverage.py 3.2b1: Branch coverage]

Ned Batchelder ned at nedbatchelder.com
Wed Nov 11 07:49:25 PST 2009


Victoria G. Laidler wrote:
> I notice from the announcement that:
>
>> The only way currently to initiate branch coverage is with the 
>> command-line interface. In particular, the nose coverage plugin has 
>> no way to use it.
>
> Do you plan to update the plugin at some point so that it can use the 
> branch coverage?
>
Yes, that's one of the more important items on the todo-list, to figure 
out what to do with the nose plugin so that it can keep up with the 
development of coverage.py.  The best plan is for coverage.py to ship 
the plugin rather than nose, so it can be kept in sync, but that hasn't 
happened yet.

Remember that you can use coverage to run nose instead of the other way 
around:

   coverage run c:\Python25\Scripts\nosetests-2.5-script.py 
nose-arguments etc blah etc

This will measure the nose code also, but for interestingly-sized 
projects, this will be negligible overhead.
> thanks,
> Vicki
>
--Ned.



More information about the testing-in-python mailing list