如何在Jenkins上配置测试结果分析器插件 [英] How to configure Test Result Analyzer plugin on Jenkins

查看:109
本文介绍了如何在Jenkins上配置测试结果分析器插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Jenkins中安装了Test Result Analyzer插件,但收到消息:No build data retrieved. You may need to select a Module.

I installed Test Result Analyzer plugin in Jenkins but getting message: No build data retrieved. You may need to select a Module.

安装插件后-要使其正常工作,我下一步要做什么?

After the plugin is installed - what are my next steps to get it working?

是否需要启用发布TestNG结果"插件?

Is it necessary to enable "Publish TestNG results" plugin?

谢谢

推荐答案

从昨天开始我也遇到了这个问题.我认为问题在于测试分析器无法找到要报告的数据.以下是我为解决该问题所做的事情

I have faced this problem since yesterday too. I think the problem is that test analyzer cannot find data to report. And below is what I did to solve it

  • 在Jenkins仪表板上,选择<your project>/配置
  • 构建后操作标签下,选择添加构建后操作,然后选择发布JUnit测试结果报告
  • 测试报告XML 中,输入您的.xml报告文件的路径,分析器将在此处找到数据以创建图表,在我的情况下为 app/build/test-results /prodDebug/*.xml ,您可以编辑路径以处理更多测试.
  • At Jenkins dashboard, select <your project> / Configure
  • Under Post-build Actions tab, select Add post-build action and choose Publish JUnit test result report
  • At Test report XMLs, enter the path to your .xml report file, the analyzer will find data here to create charts, in my case, it's app/build/test-results/prodDebug/*.xml, you can edit the path to handle more tests.

现在,当您单击测试结果分析器时,魔术将显示为xD

And now, when you click Test Results Analyzer, the magic will appear xD

祝你好运!

这篇关于如何在Jenkins上配置测试结果分析器插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆