How can I generate an HTML report for Junit results?

前端 未结 7 1391
囚心锁ツ
囚心锁ツ 2020-11-27 02:57

Is there a way to (easily) generate a HTML report that contains the tests results ? I am currently using JUnit in addition to Selenium for testing web apps UI.

PS: G

相关标签:
7条回答
  • 2020-11-27 03:18

    If you could use Ant then you would just use the JUnitReport task as detailed here: http://ant.apache.org/manual/Tasks/junitreport.html, but you mentioned in your question that you're not supposed to use Ant. I believe that task merely transforms the XML report into HTML so it would be feasible to use any XSLT processor to generate a similar report.

    Alternatively, you could switch to using TestNG ( http://testng.org/doc/index.html ) which is very similar to JUnit but has a default HTML report as well as several other cool features.

    0 讨论(0)
提交回复
热议问题