[Twisted-Python] Coverage summary with trial

Johan Rydberg johan.rydberg at edgeware.tv
Sat Apr 14 02:59:27 EDT 2012


coverage.py is great

but we also use this: https://github.com/jrydberg/txcovreport

Sent from my iPhone

On 14 apr 2012, at 06:22, Duncan McGreggor <duncan.mcgreggor at gmail.com> wrote:

> On Fri, Apr 13, 2012 at 3:19 PM, Itamar Turner-Trauring
> <itamar at itamarst.org> wrote:
>>> Hi all,
>>> 
>>> I would like to collect coverage statistic for my twisted code with trial
>>> and
>>> was wondering how to achieve this.
>>> 
>>> I run something like:
>>>       $ trial --coverage testdir/*_test.py
>> 
>> coverage.py is  a much nicer tool: http://nedbatchelder.com/code/coverage/
>> 
>> You'd do "coverage.py [some arguments here] /path/to/trial mypackage",
>> more or less.
> 
> For example:
> 
> $ sudo pip-2.7 install coverage
> $ cd ~/lab/txaws/trunk
> $ coverage run `which trial` ./txaws
> $ coverage report
> 
> d
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python



More information about the Twisted-Python mailing list