Created
February 21, 2018 12:59
-
-
Save vialyx/892c4bd3702203567dab3b4ce32ceeb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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