我正在做一个时髦的项目。我正在尝试在 Sonar 上生成 cobertura 报告。但我对测试结果有疑问。它给出了一个错误,说
Sensor GroovySurefireSensor...
**parsing** /home/jenkins/workspace/myproject/build/test-results
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
WARN - Resource not found: xxx.xxx.myproject.xxx.xxx
INFO - Sensor GroovySurefireSensor done: 12 ms
仅供参考:我能够在 SonarQube 上生成 Cobertura 报告和测试报告,但技术债务和问题显示“零”
这是我的声纳项目属性:
sonar.projectKey=myproject
sonar.projectName=myproject
sonar.projectVersion=1.0
sonar.sources=src/main
groovy.sonar.tests=src/test
sonar.language=grvy
sonar.sourceEncoding=UTF-8
sonar.surefire.reportsPath=build/test-results
sonar.junit.reportsPath=build/test-results
sonar.groovy.cobertura.reportPath=build/reports/cobertura/coverage.xml
有什么建议么?