Excluded annotated methods cause invalid coverage on Sonar #576
Labels
Question
Support request issue type
S: waiting for clarification
Status: additional information required to proceed
I use Kover on an Android app that uses Compose for its UI.
As we don't really want (for now) to have coverage on Compose code, we've excluded the
@Composable
annotation.But this causes files that contains only compose functions to be completely ignored, and therefore to be missing from reports (that apparently organize coverage per class).
Sonar unfortunately interprets this absence as "Uncovered".
On the other hand, if in the same file, we have a data class :
then a report is created for this file/class and Sonar will understand and the
MyComposable
is ignored.Is there some kind of support for this use case ? Maybe tell Kover to aggregate reports by file instead of class?
Or is it something to fix on our Sonar configuration ?
The text was updated successfully, but these errors were encountered: