sbt-sonar icon indicating copy to clipboard operation
sbt-sonar copied to clipboard

Show specific failed test in sonar UI

Open yarosman opened this issue 6 years ago • 1 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

yarosman avatar Dec 02 '19 13:12 yarosman

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?

mwz avatar Dec 02 '19 21:12 mwz