diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-12-04 19:58:08 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-12-04 19:58:08 +0100 |
commit | 9df7147c8bf6e83c7a02b664d7e0bb1613570c3a (patch) | |
tree | 27a9bf012601ed36b91d13204c7ac2d89b95b30e /OpenKeychain-Test | |
parent | 6b9749289fc7b9925865c8b04bfa6614d1587418 (diff) | |
download | open-keychain-9df7147c8bf6e83c7a02b664d7e0bb1613570c3a.tar.gz open-keychain-9df7147c8bf6e83c7a02b664d7e0bb1613570c3a.tar.bz2 open-keychain-9df7147c8bf6e83c7a02b664d7e0bb1613570c3a.zip |
Fix jacoco
Diffstat (limited to 'OpenKeychain-Test')
-rw-r--r-- | OpenKeychain-Test/build.gradle | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/OpenKeychain-Test/build.gradle b/OpenKeychain-Test/build.gradle index 83932161f..f621428ed 100644 --- a/OpenKeychain-Test/build.gradle +++ b/OpenKeychain-Test/build.gradle @@ -47,30 +47,29 @@ android { projectUnderTest ':OpenKeychain' } -//jacoco { -// //toolVersion = "0.7.0.201403182114" -// toolVersion = "0.7.2.201409121644" -//} -// -// -//coverageSourceDirs = [ -// '../OpenKeychain/src/main/java', -// '../OpenKeychain/src/gen', -// '../OpenKeychain/build/source/apt/debug', -// '../OpenKeychain/build/source/generated/buildConfig/debug', -// '../OpenKeychain/build/source/generated/r/debug' -// ] - -//jacocoTestReport { -// reports { -// xml.enabled = true -// html.destination "${buildDir}/jacocoHtml" -// } -// // class R is used, but usage will not be covered, so ignore this class from report -// classDirectories = fileTree(dir: '../OpenKeychain/build/intermediates/classes/debug/org/sufficientlysecure/keychain', exclude: [ 'R*.class' ]) -// additionalSourceDirs = files(coverageSourceDirs) -// executionData = files('build/jacoco/testDebug.exec') -//} +jacoco { + toolVersion = "0.7.2.201409121644" +} + + +def coverageSourceDirs = [ + '../OpenKeychain/src/main/java', + '../OpenKeychain/src/gen', + '../OpenKeychain/build/source/apt/debug', + '../OpenKeychain/build/source/generated/buildConfig/debug', + '../OpenKeychain/build/source/generated/r/debug' + ] + +jacocoTestReport { + reports { + xml.enabled = true + html.destination "${buildDir}/jacocoHtml" + } + // class R is used, but usage will not be covered, so ignore this class from report + classDirectories = fileTree(dir: '../OpenKeychain/build/intermediates/classes/debug/org/sufficientlysecure/keychain', exclude: [ 'R*.class' ]) + additionalSourceDirs = files(coverageSourceDirs) + executionData = files('build/jacoco/testDebug.exec') +} // new workaround to force add custom output dirs for android studio task addTest { |