伊斯坦布尔的声纳法测试覆盖率:无coverage属性.跳过传感器 [英] sonarqube test coverage with istanbul : No coverage property. Skip Sensor

查看:111
本文介绍了伊斯坦布尔的声纳法测试覆盖率:无coverage属性.跳过传感器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将伊斯坦布尔的一些测试覆盖率(lcov)报告输出到声纳尔克贝,以使用thinkworks GO分析我们的测试覆盖率.没有输出coverage/html文件夹,但sonarqube报告以下错误No coverage属性.跳过传感器.这是我的属性文件,我缺少什么?

I'm trying to output some test coverage (lcov) reports from istanbul into sonarqube to analyse our test coverage using thoughtworks GO. There is a coverage/html folder being output but sonarqube reports the following error No coverage property. Skip Sensor. Here's my properties file, what am I missing ?

sonar.projectKey=transformers.allspark.ui
sonar.projectName=Transformers Allspark UI
sonar.projectVersion=1.0
sonar.host.url=https://sonarqube-security.test.ctmers.io
sonar.sources=.
sonar.projectBaseDir=.
sonar.language=js
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPath=coverage/html

推荐答案

感谢您的回复.我设法通过用以下内容替换最后一行来解决此问题:sonar.javascript.lcov.reportPath = coverage/html/lcov.info.似乎sonarqube需要一个指向文件(lcov.info)的路径,而不仅仅是文件夹.我的伊斯坦布尔配置也是错误的,因为它需要输出lcov而不是标准报告.

Thanks for responding. I've managed to fix this by replacing the last line with this : sonar.javascript.lcov.reportPath=coverage/html/lcov.info. It appears that sonarqube needs a path to a file (lcov.info) and not just the folder. Also my istanbul configuration was wrong because it needed to output lcov and not just a standard report.

这篇关于伊斯坦布尔的声纳法测试覆盖率:无coverage属性.跳过传感器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆