From 97a73ae7ef79f4fec6e39c6eedd327a3e74d244d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 17 Jul 2015 07:51:47 -0700 Subject: Add coverage support This will export the coverage report to coveralls.io as well (from Travis CI). --- app/build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 9118576..ca76cf3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,8 +1,19 @@ apply plugin: 'android-sdk-manager' apply plugin: 'com.android.application' +apply plugin: 'com.github.kt3k.coveralls' apply from: '../config/quality.gradle' apply from: '../config/translations.gradle' +buildscript { + repositories { + jcenter() + } + + dependencies { + classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.+' + } +} + android { compileSdkVersion 22 buildToolsVersion "22.0.1" @@ -50,10 +61,13 @@ android { debug { applicationIdSuffix ".debug" + testCoverageEnabled true } } } +coveralls.jacocoReportPath = 'build/reports/coverage/debug/report.xml' + dependencies { testCompile 'junit:junit:4.12' testCompile('org.robolectric:robolectric:3.0') { -- cgit v1.2.3