我在此处看不到报告选项卡:
公共Junit测试报告:
我已经配置了公共JUnit测试报告,但是仍然看不到左侧区域的测试报告。
发布于 2017-06-29 12:35:43
当OP joan.li添加in the comments时,您需要确保您的Jenkins安装了解maven (如“Jenkins executing maven from incorrect path”中所述):
中选择默认的maven安装
你需要确保你的pom.xml
does include a surefire build step
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
另请参见this example。
检查是否生成了这些xml文件
https://stackoverflow.com/questions/44816025
复制相似问题