sonar-scala / sbt-sonar

An sbt plugin which provides an easy way to integrate Scala projects with SonarQube.

Home Page:https://sonar-scala.com/docs/setup/sbt-sonar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show specific failed test in sonar UI

yarosman opened this issue · comments

Now if some test fails in you Spec.scala and you publish this report to sonar, you will see only the failed Spec.file but not specific failed test.

It is very actual when you have integration tests

Actually, I think this should work.
sonar-scala supports multiple values set for the sonar.tests property e.g. src/test/scala, src/it/scala and our JUnit sensor also reports metrics for the number of errors, failed and skipped tests so I think it should work, although I haven't tested this scenario.

Did you try to set this up?
Are you using our community plugin sonar-scala the official one - SonarScala?