mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
Fix jacoco
This commit is contained in:
parent
6b9749289f
commit
9df7147c8b
@ -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'
|
||||
// ]
|
||||
jacoco {
|
||||
toolVersion = "0.7.2.201409121644"
|
||||
}
|
||||
|
||||
//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')
|
||||
//}
|
||||
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user