@@ -26,7 +26,7 @@ apply plugin: 'org.neotech.plugin.rootcoverage'
26
26
buildscript {
27
27
dependencies {
28
28
// Step 1: add the dependency
29
- classpath 'org.neotech.plugin:android-root-coverage-plugin:1.1.2 '
29
+ classpath 'org.neotech.plugin:android-root-coverage-plugin:1.2.0 '
30
30
}
31
31
}
32
32
```
@@ -51,7 +51,7 @@ android {
51
51
The Android-Root-Coverage-Plugin generates a special Gradle task ` :rootCodeCoverageReport ` that when
52
52
executed generates a Jacoco code coverage report. You can either run this task directly from
53
53
Android Studio using the Gradle Tool Window (see:
54
- https://www.jetbrains.com/help/idea/jetgradle-tool-window.html ) or from the terminal.
54
+ < https://www.jetbrains.com/help/idea/jetgradle-tool-window.html > ) or from the terminal.
55
55
56
56
- ** Gradle Tool Window:** You can find the task under: ` Tasks > reporting > rootCodeCoverageReport ` , double click to execute it.
57
57
- ** Terminal:** Execute the task using ` gradlew rootCodeCoverageReport ` .
@@ -60,18 +60,19 @@ https://www.jetbrains.com/help/idea/jetgradle-tool-window.html) or from the term
60
60
# Compatibility
61
61
| Version | Android Gradle plugin version | Gradle version |
62
62
| ------------- | ----------------------------- | -------------- |
63
+ | ** 1.2.0** | 3.5 | 5.4.1-5.6.4 |
63
64
| ** 1.1.2** | 3.4 | 5.1.1+ |
64
65
| ** 1.1.1** | 3.3 | 4.10.1+ |
65
66
| ~~ ** 1.1.0** ~~ | ~~ 3.3~~ | ~~ 5+~~ |
66
67
| ** 1.0.2** | 3.2 | 4.6+ |
67
68
68
69
* Note: This plugin normally supports exactly the same Gradle versions as the Android Gradle
69
70
plugin, for more information please refer to:*
70
- https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
71
+ < https://developer.android.com/studio/releases/gradle-plugin#updating-gradle >
71
72
72
73
Android Gradle Plugin versions before ` 3.4.0-alpha05 ` are affected by a bug that in certain conditions can
73
74
cause Jacoco instrumentation to fail in combination with inline kotlin methods shared across modules. For more information
74
- see: https://issuetracker.google.com/issues/109771903 and https://issuetracker.google.com/issues/110763361 .
75
+ see: < https://issuetracker.google.com/issues/109771903 > and < https://issuetracker.google.com/issues/110763361 > .
75
76
If your project is affected by this upgrade to an Android Gradle Plugin version of at least ` 3.4.0-alpha05 ` .
76
77
77
78
@@ -88,13 +89,23 @@ rootCoverage {
88
89
// Overrides the default build variant for specific modules.
89
90
buildVariantOverrides ":moduleA" : "debugFlavourA", ":moduleB": "debugFlavourA"
90
91
91
-
92
92
// Class exclude patterns
93
93
excludes = ["**/some.package/**"]
94
- // If true the task it self does not execute any tests (debug option)
95
- skipTestExecution false
96
- // Type of tests to run (import com.android.builder.model.TestVariantBuildOutput.TestType)
97
- testTypes = [TestType.UNIT, TestType.ANDROID_TEST]
94
+
95
+ // Since 1.2: When false the plugin does not execute any tests, useful when you run the tests manually or remote (Firebase Test Lab)
96
+ executeTests true
97
+
98
+ // Since 1.2: Same as executeTests except that this only affects the instrumented Android tests
99
+ executeAndroidTests true
100
+
101
+ // Since 1.2: Same as executeTests except that this only affects the unit tests
102
+ executeUnitTests true
103
+
104
+ // Since 1.2: When true include results from instrumented Android tests into the coverage report
105
+ includeAndroidTestResults true
106
+
107
+ // Since 1.2: When true include results from unit tests into the coverage report
108
+ includeUnitTestResults true
98
109
}
99
110
```
100
111
@@ -105,7 +116,6 @@ projects. But if you like to add some actually functionality, this is the wish l
105
116
106
117
- Support for Java library modules
107
118
- Make use of the JacocoMerge task? To merge the ` exec ` en ` ec ` files?
108
- - Support for configuring the output type: html, xml etc. (Just like Jacoco)
109
119
- Improved integration test setup: without the hackish dynamic versions in the Gradle plugin block?
110
120
111
121
** How to test your changes/additions?**
0 commit comments