JacocoOptions

abstract class JacocoOptions @Inject constructor(objects: ObjectFactory)

Options for controlling Jacoco reporting

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory)

Types

Link copied to clipboard
abstract class Report

Properties

Link copied to clipboard

Options for controlling the CSV Report generated by Jacoco

Link copied to clipboard
@get:Input
abstract val excludedClasses: ListProperty<String>

List of class name patterns that should be excluded from being processed by Jacoco. By default, this will exclude R.class & BuildConfig.class

Link copied to clipboard

Options for controlling the HTML Report generated by Jacoco

Link copied to clipboard
@get:Input
abstract val onlyGenerateTasksForVariants: SetProperty<String>

Filter the generated Jacoco tasks, so that only the given build variants are provided with a companion task. Make sure to add the full product flavor name if necessary (i.e. "paidDebug" if you use a "paid" product flavor and the "debug" build type). By default, this set is empty, meaning that tasks are generated for all variants.

Link copied to clipboard
@get:Input
abstract val taskGenerationEnabled: Property<Boolean>

Whether to enable Jacoco task integration

Link copied to clipboard

Options for controlling the XML Report generated by Jacoco