Skip to content

Kover configuration doesn't work in afterEvaluate #752

@beigirad

Description

@beigirad

Describe the bug
kover {} configuration doesn't work in afterEvaluate {}.

Errors
No report generated!

Expected behavior
I want to filter modules/projects that have applied an specific plugin (example-plugin) on their own.

module A:
plugins{
    id("example-plugin")
}

module B:
plugins{
    id("example-plugin")
}

module C:
plugins { }

rootProject:
afterEvaluate{
    kover {
        merge.allProjects {
            it.pluginManager.hasPlugin("example-plugin")
        }
    }
}

I expect that kover generate and merge only A and B's report

Reproducer

Reports

Environment

  • Kover Gradle Plugin version: 0.9.1
  • Kotlin version: 1.8.20
  • Gradle version: 7.6.6
  • Kotlin project type: Kotlin/Android
  • Coverage Toolset (if customized in build script): Kover

Metadata

Metadata

Assignees

Labels

BugBug 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