py.test and HTML output

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Victor Ng

    #1

    py.test and HTML output

    Is there documentation anywhere on how to get py.test to emit nice
    HTML output like the kind that they have for the PyPy project here:
    http://codespeak.net/~hpk/pypy-testresult/ ?

    Should I just redirect the stdout to a StringIO and parse the output
    and generate the HTML myself? I see that there's a htmlreport.py in
    pypy, but I'm not sure how to use it.

    vic

    --
    "Never attribute to malice that which can be adequately explained by
    stupidity." - Hanlon's Razor
  • Paul McGuire

    #2
    Re: py.test and HTML output

    "Victor Ng" <crankycoder@gm ail.comwrote in message
    news:mailman.29 4.1158695142.10 491.python-list@python.org ...
    Is there documentation anywhere on how to get py.test to emit nice
    HTML output like the kind that they have for the PyPy project here:
    http://codespeak.net/~hpk/pypy-testresult/ ?
    >
    Should I just redirect the stdout to a StringIO and parse the output
    and generate the HTML myself? I see that there's a htmlreport.py in
    pypy, but I'm not sure how to use it.
    >
    At PyCon in February, there was a presentation (lightning talk perhaps?) of
    HTMLTestRunner (http://tungwaiyip.info/software/), that sounds like it does
    much as you want. It took me about 3 minutes to integrate with my pyparsing
    unit tests, and it is a lot neater-looking than the unittest module's
    TextTestRunner.

    -- Paul


    Comment

    Working...