使用junit5生成一个报告
需求
自动生成测试报告
代码
pom.xml中添加如下代码
<properties>
<maven-surefire-report-plugin.version>2.22.2</maven-surefire-report-plugin.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
</plugins>
</build>
命令
到项目目录下执行mvn surefire-report:report