问题
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