Skip to main content

HTML coverage report generator for

Project description


:author: Olivier Grisel

`trace2html` is a utility to convert execution coverage data obtained
with the `trace` module of the standard python library into a set of human
readable HTML documents showing sortable summary and annotated source files.


As usual, you can either use `sudo easy_install -U trace2html` or extract the
archive and run::

$ sudo python install

Sample usage

Use trace2html to directly compute the coverage of a test suite by
specifying the module you are interested in::

$ -w my_module --run-command ./
$ firefox coverage_dir/index.html

Or you can collect coverage data generated with

$ /usr/lib/python2.4/ -mc -C coverage_dir -f counts

Write a report in directory 'other_dir' from data collected in 'counts'::

$ -f counts -o other_dir
$ firefox other_dir/index.html

Use the `--help` option for more details.


`trace2html` is released under the GNU/GPL v2 license (see COPYING.txt for more
details) and uses the

I would not mind relicensing `trace2html` under a more liberal license such as
the Python or ZPL licenses but that would only be useful if someone find or
write a replacement for the WebFX Sortable Table JS file under a similar
license. SortableTable.js is currently under GPLv2.

Bug reports and patches

You can directly send bug reports and patches to my personnal email address::

Or you can use `bzr`__ to branch my repository::

$ bzr branch lp:trace2html

then publish your branch on some site and send me a merge request. Please
follow the `5-minute tutorial`__ if you are new to bzr.


`trace2html` is inspired by the `cobertura project`__ for java programs. It
includes Javascript code from WebFX Sortable Table and Cobertura.

.. References
__`5-minute tutorial`::
__`cobertura project`::



- packaging bugfixes (added missing files in the source distribution)
(thanks to Grig Gheorghiu for the bug reports)


- can now be directly used to collect coverage data
- new whitelist system to explicitely restrict the traced modules


- minor bugfix in options help message


- initial revision

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
trace2html-0.2.1-py2.4.egg (15.1 kB) Copy SHA256 hash SHA256 Egg 2.4 Mar 18, 2006
trace2html-0.2.1.tar.gz (25.7 kB) Copy SHA256 hash SHA256 Source None Mar 18, 2006

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page