# JacocoCoverageVerification

API Documentation: | `JacocoCoverageVerification`

Note: This class is incubating and may change in a future version of Gradle.

Task for verifying code coverage metrics. Fails the task if violations are detected based on specified rules.

Requires JaCoCo version >= 0.6.3.

### Properties

Property | Description
`additionalClassDirs` | Incubating Additional class dirs that coverage data should be reported for.
`additionalSourceDirs` | Incubating Additional source dirs for the classes coverage data is being reported for.
`classDirectories` | Incubating Source sets that coverage should be reported for.
`executionData` | Incubating Collection of execution data files to analyze.
`jacocoClasspath` | Incubating Classpath containing Jacoco classes for use by the task.
`sourceDirectories` | Incubating Source sets that coverage should be reported for.
`violationRules` | Incubating The violation rules set for this task.

### Methods

Method | Description
`executionData(files)` | Incubating Adds execution data files to be used during coverage analysis.
`executionData(tasks)` | Incubating 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.
`executionData(tasks)` | Incubating 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.

### Script blocks

No script blocks

### Property details

#### `FileCollection` `additionalClassDirs`

Note: This property is incubating and may change in a future version of Gradle.

Additional class dirs that coverage data should be reported for.

#### `FileCollection` `additionalSourceDirs`

Note: This property is incubating and may change in a future version of Gradle.

Additional source dirs for the classes coverage data is being reported for.

#### `FileCollection` `classDirectories`

Note: This property is incubating and may change in a future version of Gradle.

Source sets that coverage should be reported for.

#### `FileCollection` `executionData`

Note: This property is incubating and may change in a future version of Gradle.

Collection of execution data files to analyze.

#### `FileCollection` `jacocoClasspath`

Note: This property is incubating and may change in a future version of Gradle.

Classpath containing Jacoco classes for use by the task.

Default with `jacoco` plugin:
  `project.configurations.jacocoAnt`

#### `FileCollection` `sourceDirectories`

Note: This property is incubating and may change in a future version of Gradle.

Source sets that coverage should be reported for.

#### `JacocoViolationRulesContainer` `violationRules` (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The violation rules set for this task.

### Method details

#### `void` `executionData`(``Object`...` files)

Note: This method is incubating and may change in a future version of Gradle.

Adds execution data files to be used during coverage analysis.

#### `void` `executionData`(``Task`...` tasks)

Note: This method is incubating and may change in a future version of Gradle.

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.

#### `void` `executionData`(`TaskCollection` tasks)

Note: This method is incubating and may change in a future version of Gradle.

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.