addWithDependencies

abstract fun addWithDependencies(vararg variantNames: String, optional: Boolean = false)(source)

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.

If optional is false and a variant with given name is not found in the current project, an error KoverIllegalConfigException is thrown.

If optional is true and a variant with given name is not found in the current project - in this case, the variant will not be searched even in dependencies.


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

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.

If optional is false and a variant with given name is not found in the current project, an error KoverIllegalConfigException is thrown.

If optional is true and a variant with given name is not found in the current project - in this case, the variant will not be searched even in dependencies.