Skip to content Skip to sidebar Skip to footer

Nice Html Reports For Pyunit

Do you know a tool for creating nice html reports for pyunit?

Solution 1:

I suggest the following:

  1. Run your tests using nose
  2. Create a nose plugin that outputs results as HTML. The nose example code has a simple HTML output plugin (https://raw.github.com/nose-devs/nose/master/examples/html_plugin/htmlplug.py). You can probably use that, at least as a starting point.

Nose plug-in documentation: http://nose.readthedocs.org/en/latest/index.html

Another option:

Solution 2:

there has a simple HTMLTestRunner developed for pyunit, here is link

The shortage of it is there are no output in console, because sys.stdout and sys.stderr was captured by HTMLTestRunner. Except above, others works fine to me.

Post a Comment for "Nice Html Reports For Pyunit"