mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-13 20:35:10 -05:00
Fix jacoco
This commit is contained in:
parent
6b9749289f
commit
9df7147c8b
@ -47,30 +47,29 @@ android {
|
|||||||
projectUnderTest ':OpenKeychain'
|
projectUnderTest ':OpenKeychain'
|
||||||
}
|
}
|
||||||
|
|
||||||
//jacoco {
|
jacoco {
|
||||||
// //toolVersion = "0.7.0.201403182114"
|
toolVersion = "0.7.2.201409121644"
|
||||||
// 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 {
|
def coverageSourceDirs = [
|
||||||
// xml.enabled = true
|
'../OpenKeychain/src/main/java',
|
||||||
// html.destination "${buildDir}/jacocoHtml"
|
'../OpenKeychain/src/gen',
|
||||||
// }
|
'../OpenKeychain/build/source/apt/debug',
|
||||||
// // class R is used, but usage will not be covered, so ignore this class from report
|
'../OpenKeychain/build/source/generated/buildConfig/debug',
|
||||||
// classDirectories = fileTree(dir: '../OpenKeychain/build/intermediates/classes/debug/org/sufficientlysecure/keychain', exclude: [ 'R*.class' ])
|
'../OpenKeychain/build/source/generated/r/debug'
|
||||||
// additionalSourceDirs = files(coverageSourceDirs)
|
]
|
||||||
// executionData = files('build/jacoco/testDebug.exec')
|
|
||||||
//}
|
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
|
// new workaround to force add custom output dirs for android studio
|
||||||
task addTest {
|
task addTest {
|
||||||
|
Loading…
Reference in New Issue
Block a user