How can I generate an HTML report for Junit results?

前端 未结 7 1511
囚心锁ツ
囚心锁ツ 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:10

    Junit xml format is used outside of Java/Maven/Ant word. Jenkins with http://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin is a solution.

    For the one shot solution I have found this tool that does the job: https://www.npmjs.com/package/junit-viewer

    junit-viewer --results=surefire-reports --save=file_location.html

    --results= is directory with xml files (test reports)

提交回复
热议问题