Jenkins Test Result Trend Graph Empty, but Tests Are Run

一世执手 提交于 2019-12-21 07:56:03

问题


Where does the data that produces the "Test Result Trend" graph actually come from? I have a "Test Only" job that produces 2 files in target/surefire-reports. (Produced by maven) Inspecting the files directly shows that the tests are executing and passing.

The graph shows successful builds along x-axis but no test results. If I click on a specific build from the project page, it shows "(no tests)" next to the "Test Result" link.

Is there some sort of post-processing I need to do on the XML files? They are in JUnit format, produced by the maven-soapui-plugin.

Thanks!


回答1:


You need to check "Publish JUnit test result report" in the "Post Build Actions" section of your job configuration, and specify the location of the XML output from your JUnit tests.




回答2:


For me, I had this problem when I had the "Aggregate downstream test results" box ticked in the job configuration. Unticking it solved my problem (I can live without aggregate results).



来源:https://stackoverflow.com/questions/7731146/jenkins-test-result-trend-graph-empty-but-tests-are-run

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