Kover Current Project Variants Config
Type for customizing report variants shared by the current project.
A report variant is a set of information used to generate a reports, namely: project classes, a list of Gradle test tasks, classes that need to be excluded from instrumentation.
currentProject {
// create report variant with custom name,
// in which it is acceptable to add information from other variants of the current project, as well as `kover` dependencies
createVariant("custom") {
// ...
}
// Configure the variant that is automatically created in the current project
// For example, "jvm" for JVM target or "debug" for Android build variant
providedVariant("jvm") {
// ...
}
// Configure the variant for all the code that is available in the current project.
// This variant always exists for any type of project.
totalVariant {
// ...
}
}
Functions
Create custom report variant as a copy of the originalVariantName variant, however, with the new name variantName.
Create custom report variant with name variantName. In it is acceptable to add information from other variants of the current project, as well as kover
dependencies.
Instrumentation settings for the current Gradle project.
Configure the variant with name variantName that is automatically created in the current project. For example, "jvm"
for JVM target or "debug"
for Android build variant.
Limit the classes that will be included in the reports. These settings do not affect the instrumentation of classes.
Configure the variant for all the code that is available in the current project. This variant always exists for any type of project.