You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mskonovalov
changed the title
Is there a way to improve coverage (or ignore) autogenerated code os kotlinx.serialization?
Is there a way to improve coverage (or ignore) autogenerated code of kotlinx.serialization?
Mar 29, 2022
Thanks for looking into this.
I have a suggestion: if possible don't replicate jacoco feature where they require to add @generated annotation to the code you want to ignore.
Instead I'd suggest to allow to configure the list of annotations to ignore in build.gradle.
Thanks
Since version 0.6.1, it has become possible to ignore classes marked with the specified annotations. You can add an exclusion of the annotation kotlin.serialization.Serializable like this example.
So currently if you use serialization all the generated classes got reported as not covered :(
Is there a way to automatically exclude such autogenerated helper classes from coverage?
(Intellij engine is a bit better than JaCoCo but still not perfect)
The text was updated successfully, but these errors were encountered: