Skip to content

@Dao annotated interfaces not excluded by annotatedBy filter #761

@hpcreator

Description

@hpcreator

Description :

I am trying to exclude Room @dao interfaces from my Kover reports using the annotatedBy filter.
However, these interfaces still appear in the HTML reports with 0% coverage, even though I expect them to be excluded.

It seems that annotatedBy("androidx.room.Dao") does not work somehow.
This results in @dao interfaces always being included in the coverage report, even when explicitly configured to be excluded.

I also tried introducing my own custom annotation with Retention.BINARY, but it still fails to exclude the class.

@Target(AnnotationTarget.CLASS) @Retention(AnnotationRetention.BINARY) public annotation class KoverCoverageExclude

Tried this annotation to apply on dao class and then filter this with annotatedBy.

Still nothing works for me.

Expected Behavior

All classes or interfaces annotated with @dao or @KoverCoverageExclude should be excluded from the Kover report when using annotatedBy.

Metadata

Metadata

Assignees

Labels

QuestionSupport request issue typeS: in progressStatus: implementing or design in process

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions