sonar-scala / sbt-sonar

An sbt plugin which provides an easy way to integrate Scala projects with SonarQube.
https://sonar-scala.com/docs/setup/sbt-sonar
Apache License 2.0
62 stars 18 forks source link

Show specific failed test in sonar UI #72

Open yarosman opened 4 years ago

yarosman commented 4 years ago

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

mwz commented 4 years ago

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?