# JacocoOptions

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/JacocoOptions.kt+class:com.android.build.api.dsl.JacocoOptions) Added in 4.2.0 Deprecated in 7.0.0


```
@Incubating
interface JacocoOptions : TestCoverage
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> Renamed to TestCoverage, use this instead:
>
> ```
> TestCoverage
> ```

DSL object for configuring JaCoCo settings.

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/JacocoOptions#version()` **This property is deprecated.** Renamed to testCoverage.jacocoVersion |

### Inherited properties

From [com.android.build.api.dsl.TestCoverage](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/TestCoverage) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/TestCoverage#jacocoVersion()`

**This property is deprecated.** Renamed to TestCoverage

## Public properties

### version

Added in 4.2.0 Deprecated in 7.0.0

```
var version: String
```

> [!CAUTION]
> **This property is deprecated.**   
> Renamed to testCoverage.jacocoVersion, use this instead:
>
> ```
> jacocoVersion
> ```

The version of JaCoCo to use.