When we configure maven-surefire-plugin
to run our JUnit tests, it generates surefire-reports
directory. This directory contains a txt file and an XML file for every test class. However, reading these files is not easy and it’s also not easily explainable to a non-techie person.
当我们配置maven-surefire-plugin
来运行我们的JUnit测试时,它将生成surefire-reports
目录。 该目录包含每个测试类的txt文件和XML文件。 但是,读取这些文件并不容易,对于非技术人员来说也不容易解释。
JUnit HTML报告 (JUnit HTML Report)
We can use maven-surefire-report-plugin
plugin to generate HTML based reports for our JUnit tests. This report can be exported and shared with the te