Gradle Sonarqube+;黄瓜+;格拉德尔

Gradle Sonarqube+;黄瓜+;格拉德尔,gradle,sonarqube,cucumber,sonarqube-scan,Gradle,Sonarqube,Cucumber,Sonarqube Scan,每当我尝试运行时。/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_sec

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

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

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

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