@Incubating abstract class JacocoReportBase : JacocoBase
Base class for Jacoco report tasks.
Since
3.4
JacocoReportBase() |
open fun additionalClassDirs(vararg dirs: File): Unit open fun additionalClassDirs(dirs: FileCollection): Unit
Adds additional class directories to those that will be included in the report. |
|
open fun additionalSourceDirs(vararg dirs: File): Unit open fun additionalSourceDirs(dirs: FileCollection): Unit
Adds additional source directories to be used for any classes included in the report. |
|
open fun executionData(vararg files: Any): Unit
Adds execution data files to be used during coverage analysis. open fun executionData(vararg tasks: Task): Unit
Adds execution data generated by a task to the list of those used during coverage analysis. 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 used during coverage analysis. Only tasks with a JacocoTaskExtension will be included; all others will be ignored. |
|
open fun getAdditionalClassDirs(): FileCollection
Additional class dirs that coverage data should be reported for. |
|
open fun getAdditionalSourceDirs(): FileCollection
Additional source dirs for the classes coverage data is being reported for. |
|
open fun getAllClassDirs(): FileCollection
Gets the class directories that coverage will be reported for. All classes in these directories will be included in the report. |
|
open fun getAllSourceDirs(): FileCollection
Gets the source directories for the classes that will be reported on. Source will be obtained from these directories only for the classes included in the report. |
|
open fun getClassDirectories(): FileCollection
Source sets that coverage should be reported for. |
|
open fun getExecutionData(): FileCollection
Collection of execution data files to analyze. |
|
open fun getSourceDirectories(): FileCollection
Source sets that coverage should be reported for. |
|
open fun setAdditionalClassDirs(additionalClassDirs: FileCollection): Unit |
|
open fun setAdditionalSourceDirs(additionalSourceDirs: FileCollection): Unit |
|
open fun setClassDirectories(classDirectories: FileCollection): Unit |
|
open fun setExecutionData(executionData: FileCollection): Unit |
|
open fun setSourceDirectories(sourceDirectories: FileCollection): Unit |
|
open fun sourceSets(vararg sourceSets: SourceSet): Unit
Adds a source set to the list to be reported on. The output of this source set will be used as classes to include in the report. The source for this source set will be used for any classes included in the report. |
open fun getJacocoClasspath(): FileCollection
Classpath containing Jacoco classes for use by the task. |
|
open fun setJacocoClasspath(jacocoClasspath: FileCollection): Unit |
open class JacocoCoverageVerification : JacocoReportBase
Task for verifying code coverage metrics. Fails the task if violations are detected based on specified rules. Requires JaCoCo version >= 0.6.3. |
|
open class JacocoReport : JacocoReportBase, Reporting<JacocoReportsContainer>
Task to generate HTML, Xml and CSV reports of Jacoco coverage data. |