How can I generate an HTML report for Junit results?

前端 未结 7 1519
囚心锁ツ
囚心锁ツ 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条回答
  •  旧时难觅i
    2020-11-27 03:05

    I found the above answers quite useful but not really general purpose, they all need some other major build system like Ant or Maven.

    I wanted to generate a report in a simple one-shot command that I could call from anything (from a build, test or just myself) so I have created junit2html which can be found here: https://github.com/inorton/junit2html

    You can install it by doing:

    pip install junit2html
    

提交回复
热议问题