【问题标题】:Sonarqube + Cucumber + GradleSonarqube + Cucumber + Gradle
【发布时间】:2016-12-01 23:41:20
【问题描述】:

每当我尝试运行 ./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

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

【问题讨论】:

    标签: gradle sonarqube cucumber sonarqube-scan


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2016-12-03
      • 1970-01-01
      • 2016-09-05
      • 1970-01-01
      • 2016-12-15
      • 2017-10-07
      • 2019-08-11
      • 1970-01-01
      • 2019-03-28
      相关资源
      最近更新 更多