简体   繁体   English

遗失有关Jenkins的Test Analyzer报告

[英]Missing Test Analyzer reports on Jenkins

In my project I enabled Publish JUnit test result report in Post-build Actions but after a build there is no Test Analyzer Report. 在我的项目中,我在Post-build Actions启用了“ Publish JUnit test result report ,但是在构建后没有“测试分析​​器”报告。

Is there is any solution for this? 有什么解决办法吗?

If your console output for the build for a project (eg, "my-project") creates a JUnit reports folder like: 如果您的用于项目构建的控制台输出(例如“ my-project”)创建了一个JUnit报告文件夹,例如:

[mkdir] Created dir: /usr/share/tomcat8/.jenkins/jobs/my-project/workspace/build/reports/junit

Then you should have your Test report XMLs option set to build/reports/junit/*.xml as follows: 然后,应将“ Test report XMLs选项设置为build/reports/junit/*.xml ,如下所示:

Jenkins-发布JUnit测试结果报告

You can also browse your Workspace after a build to locate the path of the JUnit reports: 您还可以在构建后浏览工作区以找到JUnit报告的路径:

Jenkins工作区-JUnit报告

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM