KoverMergingVariantCreate

Create custom report variant in all included projects.

For more information about the settings, see KoverCurrentProjectVariantsConfig.createVariant.

This action is executed delayed, just before all tasks are created, at the after evaluate stage. A corresponding project is passed in the argument. Analyzing this project, you can make flexible configurations.

createVariant("custom") {
if (project.plugins.hasPlugin("kotlin")) {
add("jvm")
}
}

Functions

Link copied to clipboard
abstract fun add(vararg variantNames: String, optional: Boolean = false)

Add to created variant classes, tests and instrumented classes from report variant with name variantNames. This variant is taken only from the current project.

abstract fun add(variantNames: Iterable<String>, optional: Boolean = false)

Add to created variant classes, tests and instrumented classes from report variant with name variantNames. These variants are taken only from the current project.

Link copied to clipboard
abstract fun addWithDependencies(vararg variantNames: String, optional: Boolean = false)

Add to created variant classes, tests and instrumented classes from report variant with name variantNames. This variant is taken from the current project and all kover(project("name")) dependency projects.

abstract fun addWithDependencies(variantNames: Iterable<String>, optional: Boolean = false)

Add to created variant classes, tests and instrumented classes from report variant with name variantNames. These variants are taken from the current project and all kover(project("name")) dependency projects.

Link copied to clipboard
abstract fun sources(block: Action<KoverVariantSources>)

Limit the classes that will be included in the reports. These settings do not affect the instrumentation of classes.

Properties

Link copied to clipboard
abstract val project: Project

The current project that is being configured.

Link copied to clipboard

Instance to limit the classes that will be included in the reports.