Jenkins测试结果趋势图为空,但运行测试 [英] Jenkins Test Result Trend Graph Empty, but Tests Are Run

查看:707
本文介绍了Jenkins测试结果趋势图为空,但运行测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

产生测试结果趋势"图的数据实际上是从哪里来的?我有一个仅测试"作业,在target/surefire-reports中生成2个文件. (由maven制作)直接检查文件可表明测试正在执行并通过.

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.

该图显示了沿x轴的成功构建,但没有测试结果.如果我从项目页面上单击特定的版本,则测试结果"链接旁边会显示(没有测试)".

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.

我需要对XML文件进行某种后处理吗?它们是由Maven-soapui-plugin产生的JUnit格式.

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.

谢谢!

推荐答案

您需要在作业配置的后期构建操作"部分中选中发布JUnit测试结果报告",并指定XML输出的位置.您的JUnit测试.

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.

这篇关于Jenkins测试结果趋势图为空,但运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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