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

holger krekel holger at merlinux.eu
Wed Nov 11 08:20:48 PST 2009


Hi Ned, Vicky, all,

what about a plugin that works on both nose and pytest? 

Rozza has done a coverage plugin for pytest here. 
http://github.com/rozza/py.test-plugins/blob/master/pytest_coverage.py
and i am happy to help to work on a joint one.  
If i see it correctly it shouldn't be hard to make a 
single source & setup for a nose/py.test plugin. 

cheers,
holger


On Wed, Nov 11, 2009 at 10:49 -0500, Ned Batchelder wrote:
> 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.
>
> _______________________________________________
> 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