3的测试报告位置

3的测试报告位置

本文介绍了正确指定在Bamboo上构建Grails 3的测试报告位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Atlassian Bamboo构建一个Grails 3应用程序。我已经配置了Grails 3任务,详见。



我无法让Bamboo找到我的测试报告。在Grails任务类型上,您可以指定任务是否生成测试结果,如果是,它们来自哪里。因此,我尝试了以下操作:


  • 查看标准测试结果目录

  • 指定自定义结果目录:
    $ b

    • ** / * reports / *。xml (这是您选择时的默认值指定...)

    • build / reports / tests / index.html




所有三种都会产生此错误:

$ b $正确答案是 build / test-results / *。xml ,因为这是JUnit的地方提交测试报告。
$ b $ ** / * - reports / *。xml 失败,因为它位于 -results



build / reports / tests / index.html 失败,因为它正好在输入框上方说明:

我发现(来自),JUnit负责生成独立于Gradle / Grails的测试结果,这个测试结果不仅仅是一个简单的测试结果,这是我发现他们在一个奇怪的地方。


I am building a Grails 3 application using Atlassian Bamboo. I've configured the Grails 3 task as explained in my answer to this question.

I am having trouble getting Bamboo to find my test reports. On the Grails task type, you can specify if the task produces test results, and if so, where they come from. So I have tried the following:

  • Look in the standard test results directory
  • Specify custom results directories:
    • **/*reports/*.xml (which is the default when you choose Specify...)
    • build/reports/tests/index.html

All three produce this error:

解决方案

The correct answer is build/test-results/*.xml, as that is where JUnit puts its test reports.

**/*-reports/*.xml fails because it is in -results.

build/reports/tests/index.html fails because, as it says right above the input box:

I discovered (from somewhere in this thread) that JUnit is responsible for generating the test results independent of Gradle / Grails, which is how I found they were in an odd place.

这篇关于正确指定在Bamboo上构建Grails 3的测试报告位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:54