Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created February 21, 2018 12:59
Show Gist options
  • Save vialyx/892c4bd3702203567dab3b4ce32ceeb6 to your computer and use it in GitHub Desktop.
Save vialyx/892c4bd3702203567dab3b4ce32ceeb6 to your computer and use it in GitHub Desktop.
// TODO: Implement plugin
apply plugin: 'jacoco-android'
// TODO: Setup test coverage for build type
android {
buildTypes {
debug {
testCoverageEnabled = true
...........
}
}
testOptions {
unitTests.all {
jacoco {
includeNoLocationClasses = true
}
}
}
}
// TODO: Setup Jacoco version. It's recomended way to exclude conflicts beetwen components
jacoco {
toolVersion = "0.7.4.201502262128"
}
// TODO: Setup jacoco report format. We need xml for Sonarqube
jacocoAndroidUnitTestReport {
csv.enabled false
html.enabled false
xml.enabled true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment