如何配置使用grails的Jenkins CI上的测试报告? [英] How to configure test-reports on Jenkins CI working with grails?

查看:96
本文介绍了如何配置使用grails的Jenkins CI上的测试报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我配置了JenkinsCI在grails应用程序上构建并运行测试。
但我不明白junit测试报告配置。
我尝试把target / test-reports / *。xml,但是我收到一个文件不存在的错误。
如何配置它?

I configured JenkinsCI to build and run test on a grails application. But I don't understand the junit test-reports configuration. I try to put target/test-reports/*.xml but I receive an error that the files does not exists. How to configure it ?

谢谢

Thanks

推荐答案

您提供的路径需要与工作空间根目录相关,如下所示:

The path you provide needs to be relative to the workspace root, which will be something like:

grails-app-name/target/test-reports/*.xml

如果你正在检查它输出到一个模块中(在源代码管理部分中是一个可选的Jenkins字段),您首先需要模块名称:

If you're checking it out into a module (an optional Jenkins field in the "Source Code Management" section), you'll need the module name first:

module-name/grails-app-name/target/test-reports/*.xml

提示:

在您输入值的测试报告XMLs 字段下方,有一个指向工作区根。点击它,并导航到你的测试报告文件夹;顶部的路径是您需要输入的路径。

Underneath the Test report XMLs field you're entering the value in, there's a link to the workspace root. Click it, and navigate to your test-reports folder; the path at the top is what you need to enter.

这篇关于如何配置使用grails的Jenkins CI上的测试报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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