Add JaCoCo plugin
This commit is contained in:
@@ -54,6 +54,7 @@ android {
|
|||||||
debug {
|
debug {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
|
testCoverageEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard-rules-debug.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard-rules-debug.pro'
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
@@ -211,5 +212,4 @@ dependencies {
|
|||||||
|
|
||||||
// https://github.com/square/leakcanary/releases
|
// https://github.com/square/leakcanary/releases
|
||||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.9.1"
|
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.9.1"
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -34,6 +34,8 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
// https://plugins.gradle.org/plugin/org.sonarqube
|
// https://plugins.gradle.org/plugin/org.sonarqube
|
||||||
id "org.sonarqube" version "3.3"
|
id "org.sonarqube" version "3.3"
|
||||||
|
// https://plugins.gradle.org/plugin/nl.neotech.plugin.rootcoverage
|
||||||
|
id "nl.neotech.plugin.rootcoverage" version "1.5.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
task clean(type: Delete) {
|
||||||
@@ -47,4 +49,8 @@ sonarqube {
|
|||||||
property "sonar.host.url", "https://sonarcloud.io"
|
property "sonar.host.url", "https://sonarcloud.io"
|
||||||
property "sonar.androidLint.reportPaths", "build/reports/lint-results-debug.xml"
|
property "sonar.androidLint.reportPaths", "build/reports/lint-results-debug.xml"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootCoverage {
|
||||||
|
includeNoLocationClasses true
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user