How to configure Test Result Analyzer plugin on Jenkins

守給你的承諾、 提交于 2020-01-01 08:57:25

问题


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?

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

thanks


回答1:


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

  • 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.

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

Good luck!



来源:https://stackoverflow.com/questions/39469654/how-to-configure-test-result-analyzer-plugin-on-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!