Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我通过 jenkins 运行 grails 测试时,我可以检查控制台以查看所有内容。我会看到这样的东西:
Tests PASSED - view reports in /Users/me/developer/gradlemucks/grails_2/hello-world/target/test-reports
无论如何我可以在詹金斯的某个地方放置一个超链接到测试报告,这样我就可以点击报告?谢谢
根据测试指南,Grails 默认输出测试结果.html和.xml格式化结果。您可以配置 Jenkins 来读取.xml文件:
.html
.xml
Post-build Action
Publish JUnit test result report
Test report XMLs
build/test-results/*.xml
这将允许您从 Jenkins 的左侧边栏中单击为任何构建运行的测试。
你看过侧边栏链接插件吗?它允许您将任意链接添加到作业的左侧菜单。