1

每当我尝试运行 ./gradlew sonarqube 时,都会收到以下消息:

  Scenario: This is a test      # sample/helloworld/readycheck.feature:3
    Given This is my first step # StepDefinitions.This_is_my_first_step()
    When This is my second step # StepDefinitions.This_is_my_second_step()
    Then This is my third step  # StepDefinitions.This_is_my_third_step()

1 Scenarios (1 passed)
3 Steps (3 passed)
0m0.221s


sample.helloworld.ReadyCheckTest > testDoGet STANDARD_OUT
Checking ready status...
Returing ready code: 200

sample.helloworld.ReadyCheckTest > testDoPost STANDARD_OUT
Set isReady to true
:buildDashboard UP-TO-DATE
:sonarqube
Resource not found: Scenario: This is a test

BUILD SUCCESSFUL

Total time: 11.112 secs

但是,我没有关于声纳的黄瓜报告。如何让它显示在仪表板上?

4

1 回答 1

1

SonarQube Java 和 Groovy 插件仅支持遵循“surefire”格式 (Maven) 的测试报告。

如果黄瓜不是这种情况,您可以尝试将报告转换为 Surefire(并继续依赖 Java/Groovy 插件来导入它们)或将由SonarQube 通用测试覆盖插件导入的通用 XML 格式。

于 2016-07-28T19:51:34.630 回答