Configure HTML report for all Android build variants.
html {
filters {
// ...
}
title = "My report title"
}
Configure coverage verification for all Android build variants..
verify {
rule {
// ...
}
rule("Custom Name") {
// ...
}
}
Configure HTML report for all Android build variants.
xml {
filters {
// ...
}
}
Exclude sources of specified Kotlin compilations from Kotlin MPP reports.
As a side effect, reports cease to depend on the task of compiling specified compilations.
Exclude sources of all Kotlin compilations with specified name from Kotlin MPP reports.
As a side effect, reports cease to depend on the task of compiling specified compilations.
Exclude sources of all Kotlin compilations with specified name from Kotlin MPP reports.
Exclude sources of specified Kotlin compilations from Kotlin MPP reports.
Exclude sources of specified targets from Kotlin MPP reports.
Exclude sources of specified targets from Kotlin MPP reports.
As a side effect, reports cease to depend on the task of compiling specified targets.
Name of the project extension to configure Kover reports for Kotlin JVM and Kotlin Multiplatform projects.
Experimental
Exclude specified compilation units from report.
The unit is typical for each type of project, for example, for Kotlin JVM it is Source Set, for Kotlin MPP it is target or Kotlin compilation. Also, JVM sources are an independent compilation unit.
As a side effect, when any compilation unit is excluded, reports cease to depend on the task of compiling this unit.
Specify compilation unit exclusion for Kotlin JVM project.
Specify compilation unit exclusion for Kotlin MPP project.
Minimal supported Kover coverage tool version.
Configuration for default variant reports
Specify common filters for the current report context, these filters will be inherited in HTML/XML/verification reports. They can be redefined in the settings of a specific report.
Configure HTML report for current report context.
Configure coverage verification for current report context.
Configure HTML report for current report context.
Configure reports for classes from Kotlin/JVM or Kotlin/MPP projects. Also content from specified Android build variant can be added by calling mergeWith
.
example:
kover {
defaults {
// add content of reports for specified variant to default reports
mergeWith("buildVariant")
filters {
// override report filters for default reports
}
html {
// configure default HTML report
}
xml {
// configure default XML report
}
verify {
// configure default coverage verification
}
}
}
Specify common filters for all Android build variants, these filters will be inherited in HTML/XML/verification reports in any variant. They can be redefined in the settings of a specific report of specific build variant.
filters {
excludes {
// ...
}
includes {
// ...
}
}
Specify common filters for the current report context, these filters will be inherited in HTML/XML/verification reports. They can be redefined in the settings of a specific report.
filters {
excludes {
// ...
}
includes {
// ...
}
}