You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gradle plugin that generates JaCoCo reports from an Android Gradle Project. It goes over every subproject and creates the `jacocoReport` task. If you want an aggregated report from all subprojects use the `jacocoFullReport` task.
7
+
Gradle plugin that generates Jacoco reports from a Gradle Project. Android Application, Android Library and Java Plugins are supported by this plugin. When this plugin is applied it goes over every subproject and creates the corresponding Jacoco tasks.
8
8
9
-
Works with the latest Gradle Android Tools version 1.5.0. This plugin is compiled using Java 8 hence you also need Java 8 in order to use it.
9
+
### Android project
10
+
11
+
- Task `jacocoTestReport<BuildType>`
12
+
- Executes the `test<BuildType>` task before
13
+
- Gets executed when the `check` task is executed
14
+
- Generated Jacoco reports can be found under `build/reports/jacoco/<BuildType>`.
15
+
16
+
Where `<BuildType>` usually is `debug` and `release` unless additional build types where specified. For instance when having `debug` and `release` build types the following tasks would be created: `jacocoTestReportDebug`, `jacocoTestReportRelease`.
17
+
18
+
### Java project
19
+
20
+
- Task `jacocoTestReport`
21
+
- Executes the `test` task before
22
+
- Gets executed when the `check` task is executed
23
+
- Generated Jacoco reports can be found under `build/reports/jacoco/`.
24
+
25
+
Works with the latest Gradle Android Tools version 1.5.0. This plugin is compiled using Java 7 hence you also need Java 7 in order to use it.
Those are all available configurations - shown with default values and their types. More information can be found in the [Java Documentation of the Extension](src/main/groovy/com/vanniktech/android/junit/jacoco/JunitJacocoExtension.groovy).
64
57
65
58
```groovy
66
-
./gradlew jacocoFullReport
67
-
```
68
-
69
-
**XML reports**
70
-
71
-
```
72
-
<root>/build/reports/jacoco/full/jacoco.xml
73
-
```
74
-
75
-
**HTML reports**
76
-
77
-
```
78
-
<root>/build/reports/jacoco/full/index.html
59
+
junitJacoco {
60
+
jacocoVersion = '0.7.2.201409121644' // type String
0 commit comments