Domanda

I know I can drill down in the coverage widget on the dashboard and see the code and branch coverage. However, I would like to see what source files and lines of code are covered by each individual test. It's looking like Sonar doesn't support this the other way around. If it's not supported, is there a way I can configure Sonar to do such? FYI, we are using JaCoCo for test coverage right now. Any info greatly appreciated!

È stato utile?

Soluzione

This probably doesn't help much, but I'm pretty sure that this is not supported.

Sonar will only allow you to view the results by tested class, not by test class.

One way to work around this would be to run Sonar multiple times, once for each test class, but that's probably not easy to do and probably not what you're looking for.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top