sonar-scoverage-plugin icon indicating copy to clipboard operation
sonar-scoverage-plugin copied to clipboard

any unit test result referring to any scala test class (using scalatest) won't show in the sonar

Open kknd22 opened this issue 10 years ago • 4 comments

I initially posted the question: https://github.com/NCR-CoDE/sonar-scalastyle/issues/8

I am thinking to add a surefieSonser like in (http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.sonar-plugins/sonar-groovy-plugin/0.6/org/sonar/plugins/groovy/surefire/SurefireSensor.java#SurefireSensor) in this plugin. To make LOC work. Do you think it is a valid approach? Thanks -cl

kknd22 avatar Apr 01 '16 14:04 kknd22

As per the other thread, I am looking at creating a ScalaTest Sensor for Sonar.

I'm not sure it's any more appropriate to bundle this sensor with scoverage than it is with scalastyle?

I hope to have something ready over the weekend, it's a matter of a few lines of code.

Obviously the tricky part is knowing which lines they are...

maiflai avatar Apr 07 '16 06:04 maiflai

I have a temp work around using https://github.com/Stratio/sonar-scala-plugin

kknd22 avatar Apr 07 '16 17:04 kknd22

How to publish unit test execution result to Sonar using scoverage plugin?

Rajshr avatar Apr 22 '16 09:04 Rajshr

I've published https://github.com/maiflai/sonar-scalatest/releases/download/0.0.1/sonar-scalatest-plugin-0.0.1.jar which might help you.

maiflai avatar Apr 22 '16 19:04 maiflai