flybywire
flybywire

Reputation: 274070

nice html reports for pyunit

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

Upvotes: 9

Views: 6886

Answers (2)

codeape
codeape

Reputation: 100904

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:

Upvotes: 9

brike
brike

Reputation: 313

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.

Upvotes: 1

Related Questions