Permalink
Browse files

add code coverage support with codecov

  • Loading branch information...
npark-mozilla committed Apr 21, 2017
1 parent 47d7058 commit 9290452f33ee118a5e442415a287dc48b455b5d4
Showing with 20 additions and 0 deletions.
  1. +1 −0 README.md
  2. +16 −0 app/build.gradle
  3. +2 −0 buddybuild_postbuild.sh
  4. +1 −0 build.gradle
View
@@ -1,3 +1,4 @@
[![codecov](https://codecov.io/gh/mozilla-mobile/focus-android/branch/master/graph/badge.svg)](https://codecov.io/gh/mozilla-mobile/focus-android/branch/master)
# Firefox Focus for Android
_Browse like no one’s watching. The new Firefox Focus automatically blocks a wide range of online trackers — from the moment you launch it to the second you leave it. Easily erase your history, passwords and cookies, so you won’t get followed by things like unwanted ads._
View
@@ -1,5 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
apply plugin: 'jacoco-android'
android {
@@ -37,6 +39,14 @@ android {
}
debug {
applicationIdSuffix ".debug"
testCoverageEnabled true
}
}
testOptions {
unitTests.all {
jacoco {
includeNoLocationClasses = true
}
}
}
@@ -100,6 +110,12 @@ android {
}
}
jacocoAndroidUnitTestReport {
csv.enabled false
html.enabled true
xml.enabled true
}
repositories {
flatDir {
dirs 'libs'
View
@@ -5,3 +5,5 @@ set -e # Exit (and fail) immediately if any command in this scriptfails
# findbugs is run as part of |gradle build| and |gradle| check, but those
# aren't run directly in buddybuild.
#./gradlew findbugs
./gradlew jacocoTestReport
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
View
@@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

0 comments on commit 9290452

Please sign in to comment.