Converting XML JUnit report to HTML [duplicate]

2019-05-16 11:37发布

问题:

This question already has an answer here:

  • How can I generate an HTML report for Junit results? 6 answers
  • What XSLT converts JUnit Xml format to JUnit Plain format 1 answer
  • Custom JUnit Report? 3 answers
  • how can i create a html report for the junit xml report manually? 2 answers

I have been generating junit xml report till now for my Protractor tests, but as tests are increasing I need to get a HTML report for the tests. Can we change the junit xml report to HTML using XSLT? If yes, can I have XSLT file for the same.

回答1:

The solution can be to convert JUnit XML files to HTML files using the XSLT . You can find the XSLT file in the answer of this question: What XSLT converts JUnit Xml format to JUnit Plain format

You can use XSLT to create custom manual reports as in Custom JUnit Report?

You can use Ant to create HTML reports as in how can i create a html report for the junit xml report manually?