[Twisted-Python] Coverage summary with trial

Itamar Turner-Trauring itamar at itamarst.org
Fri Apr 13 15:19:21 EDT 2012

> 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.

More information about the Twisted-Python mailing list