KoverVariantCreateConfig

The type for creating a custom report variant.

Example:

// Add to created variant classes, tests and instrumented classes from "jvm" report variant of current project
add("jvm")

// add an "nonexistent" option that may not exist in the current project
add("nonexistent", true)

// Add to created variant classes, tests and instrumented classes from "jvm" report variant of current project, as well as `kover(project("name"))` dependencies
addWithDependencies("custom")

Inheritors

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

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