instrumentation

abstract fun instrumentation(config: Action<KoverMergingInstrumentation>)(source)

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.*")
}
}