KoverMergingInstrumentation

Instrumentation settings for all included projects.

For more information about the settings, see KoverVariantConfig.instrumentation.

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.

instrumentation {
if (project.name == "projectName") {
excludedClasses.add("foo.bar.*")
}
}

Properties

Link copied to clipboard
abstract val disabledForAll: Property<Boolean>

Disable instrumentation in all test tasks. No one task from this project will not be called when generating Kover reports and these tasks will not be instrumented even if you explicitly run them.

Link copied to clipboard
abstract val disabledForTestTasks: SetProperty<String>

Specifies not to use test task with passed names to measure coverage. These tasks will also not be called when generating Kover reports and these tasks will not be instrumented even if you explicitly run them.

Link copied to clipboard
abstract val excludedClasses: SetProperty<String>

Disable instrumentation in test tasks of specified classes

Link copied to clipboard
abstract val includedClasses: SetProperty<String>

Enable instrumentation in test tasks only of specified classes. All other classes will not be instrumented.

Link copied to clipboard
abstract val project: Project

The current project that is being configured.