相关疑难解决方法(0)

在 sonarqube 中导入 mocha 单元测试结果

我使用 mocha 来获取单元测试结果,使用 istanbul 来获取代码覆盖率。我正在使用 grunt 来运行这些任务。它工作正常。我也在使用grunt-sonar-runner插件将这些结果导入声纳。当前代码覆盖率已导入,但单元测试结果并非如此。在构建过程中,声纳向我报告:

20:40:19.410 WARN  - Test result will not be saved for test class "Account Controllers User Controller forgot password", because SonarQube associated resource has not been found using file name: "Account Controllers User Controller forgot password.js"
20:40:19.411 WARN  - Test result will not be saved for test class "Account Controllers User Controller login", because SonarQube associated resource has not been found using file name: "Account Controllers User Controller login.js"
20:40:19.413 WARN  - …
Run Code Online (Sandbox Code Playgroud)

javascript mocha.js gruntjs sonarqube

3
推荐指数
1
解决办法
8825
查看次数

标签 统计

gruntjs ×1

javascript ×1

mocha.js ×1

sonarqube ×1