You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2017/09/07 08:18:22 UTC
[05/14] incubator-weex git commit: * [android] jacoco plugin apply
* [android] jacoco plugin apply
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/6f963987
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/6f963987
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/6f963987
Branch: refs/heads/0.16-dev
Commit: 6f963987841812f42b08a9d2437da9c24d5a58c0
Parents: 425a969
Author: atomtong <to...@qq.com>
Authored: Thu Aug 31 17:24:31 2017 +0800
Committer: atomtong <to...@qq.com>
Committed: Thu Aug 31 17:24:31 2017 +0800
----------------------------------------------------------------------
android/playground/app/build.gradle | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6f963987/android/playground/app/build.gradle
----------------------------------------------------------------------
diff --git a/android/playground/app/build.gradle b/android/playground/app/build.gradle
index f098434..d023e84 100755
--- a/android/playground/app/build.gradle
+++ b/android/playground/app/build.gradle
@@ -1,5 +1,11 @@
apply plugin: 'com.android.application'
apply plugin: 'com.taobao.android.jacoco'
+apply plugin: "jacoco"
+
+jacoco {
+ toolVersion = "0.7.9"
+ reportsDir = file("$buildDir/customJacocoReportDir")
+}
android {
compileSdkVersion project.compileSdkVersion
@@ -110,7 +116,6 @@ dependencies {
compile 'com.taobao.android:weex_inspector:0.11.0'
}
-
def coverageSourceDirs = ['../../../android/sdk/src/main/java']
task jacocoTestReport(type: JacocoReport) {
group = "Reporting"
@@ -118,6 +123,7 @@ task jacocoTestReport(type: JacocoReport) {
reports {
xml.enabled = true
html.enabled = true
+ csv.enabled true
}
classDirectories = fileTree(//"enter code here"
dir: '../../../android/sdk/build/intermediates/classes/debug',
@@ -141,6 +147,7 @@ task jacocoTestReport(type: JacocoReport) {
File configFile = file('../../../android/sdk/build/intermediates/classes/debug')
configFile = file(configFile.absolutePath)
+ println 'test==================='
println configFile.path
executionData = files("$buildDir/outputs/coverage.ec")