[zz]How to produce html unit test output in Python?

http://stackoverflow.com/questions/1758354/how-to-produce-html-unit-test-output-in-python

I'm looking for any way to display the results of python unit tests in an html summary. There are tools like this for Java and Ruby... haven't yet located any tools that seem to do this for Python. Are there any out there?


Yes, there is something like that written, it's at http://tungwaiyip.info/software/HTMLTestRunner.html. Here is the sample output: http://tungwaiyip.info/software/sample%5Ftest%5Freport.html


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.

 

There is a similar question answered here: http://stackoverflow.com/questions/767377/nice-html-reports-for-pyunit



posted @ 2012-03-01 15:39  bettermanlu  阅读(236)  评论(0编辑  收藏  举报