gpt4 book ai didi

gradle - Sonarqube + cucumber + Gradle

转载 作者:行者123 更新时间:2023-12-03 04:01:41 25 4
gpt4 key购买 nike

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

但是,我没有有关声纳的 cucumber 报道。如何将其显示在仪表板上?

最佳答案

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

如果不是 cucumber ,则可以尝试将报告转换为Surefire(并继续依靠Java / Groovy插件导入)或将由SonarQube Generic Test Coverage插件导入的通用XML格式。

关于gradle - Sonarqube + cucumber + Gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38621818/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com