声纳/JaCoCo4sbt/Jenkins [英] Sonar / JaCoCo4sbt / Jenkins
问题描述
我想知道将JaCoCo4sbt的数据插入Sonar的最简单方法是什么, 在Jenkins中,我安装了Sonar& JaCoCo的插件.我还在Sonar中安装了JaCoCo的插件.
I would like to know whats the easiest way to plug JaCoCo4sbt's data into Sonar, In Jenkins I have installed Sonar & JaCoCo's plugins. I have also installed JaCoCo's plugin in Sonar.
我的sonar-project.properties文件包含:
My sonar-project.properties file contains :
sonar.jacoco.reportPath=target/jacoco/jacoco.exec
Jenkins的工作执行以下命令:
And Jenkins's job execute these commands :
sbt jacoco:cover
/opt/sonar-runner/bin/sonar-runner
SBT_OPTS="-Dsbt.log.noformat=true"
sbt clean update compile test doc
目前,我没有将任何代码覆盖率数据导入Sonar
For now I don't get any code coverage data into Sonar
推荐答案
Do you want to report code coverage on Scala code using the Scala plugin for Sonar (http://docs.codehaus.org/display/SONAR/Scala+Plugin)? Unfortunately it does not yet provide a sensor for code coverage. It's on the roadmap for future versions.
至少jacoco4sbt成功生成了文件jacoco.exec,但是Scala插件没有对此文件进行整理.
At least jacoco4sbt successfully generates the file jacoco.exec but it is just not picket up by the Scala plugin.
这篇关于声纳/JaCoCo4sbt/Jenkins的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!