api / org.gradle.testing.jacoco.tasks / JacocoMerge

JacocoMerge

@CacheableTask @Incubating open class JacocoMerge : JacocoBase

Task to merge multiple execution data files into one.

Constructors

<init>

JacocoMerge()

Task to merge multiple execution data files into one.

Functions

executionData

open fun executionData(vararg files: Any): Unit

Adds execution data files to be merged.

open fun executionData(vararg tasks: Task): Unit

Adds execution data generated by a task to the list of those to merge. Only tasks with a JacocoTaskExtension will be included; all others will be ignored.

open fun executionData(tasks: TaskCollection<Task>): Unit

Adds execution data generated by the given tasks to the list of those merged. Only tasks with a JacocoTaskExtension will be included; all others will be ignored.

getDestinationFile

open fun getDestinationFile(): File

File to write merged execution data to.

getExecutionData

open fun getExecutionData(): FileCollection

Collection of execution data files to merge.

merge

open fun merge(): Unit

setDestinationFile

open fun setDestinationFile(destinationFile: File): Unitopen fun setDestinationFile(destinationFile: Provider<File>): Unit

Set the provider for calculating the destination file.

setExecutionData

open fun setExecutionData(executionData: FileCollection): Unit

Inherited Functions

getJacocoClasspath

open fun getJacocoClasspath(): FileCollection

Classpath containing Jacoco classes for use by the task.

setJacocoClasspath

open fun setJacocoClasspath(jacocoClasspath: FileCollection): Unit