Kotlin / kotlinx-kover

Apache License 2.0
1.25k stars 46 forks source link

Add property `variantName` to `KoverReport` interface #587

Closed shanshin closed 2 days ago

shanshin commented 1 month ago

What is your use-case and why do you need this feature? Property variantName will help to filter Kover tasks by selecting those that relate to specific variant.

So, to find the HTML report for debug Android build variant:

tasks.withType<KoverHtmlReport>().matching { 
    it.variantName == "debug" 
}
shanshin commented 2 days ago

Implemented in 0.8.0