Ignore generated and other template classes.
This commit is contained in:
parent
d1a3e02faf
commit
f8f006d41c
|
@ -1,4 +1,26 @@
|
||||||
def excludes = [ ]
|
def excludes = [
|
||||||
|
// dependency injection graph
|
||||||
|
'**/*Module.*',
|
||||||
|
'**/*Module*.*',
|
||||||
|
|
||||||
|
// Framework entry points
|
||||||
|
'**/*Activity*',
|
||||||
|
'**/*Fragment*',
|
||||||
|
'**/*Application*',
|
||||||
|
|
||||||
|
// We would like to exclude android widgets as well but our naming is inconsistent
|
||||||
|
|
||||||
|
// Proof of concept
|
||||||
|
'**/*Login2*',
|
||||||
|
|
||||||
|
// Generated
|
||||||
|
'**/*JsonAdapter*',
|
||||||
|
'**/*Item.*',
|
||||||
|
'**/*$Holder.*',
|
||||||
|
'**/*ViewHolder.*',
|
||||||
|
'**/*View.*',
|
||||||
|
'**/*BottomSheet.*'
|
||||||
|
]
|
||||||
|
|
||||||
def initializeReport(report, projects, classExcludes) {
|
def initializeReport(report, projects, classExcludes) {
|
||||||
projects.each { project -> project.apply plugin: 'jacoco' }
|
projects.each { project -> project.apply plugin: 'jacoco' }
|
||||||
|
@ -56,8 +78,9 @@ task theCodeCoverageReport(type: JacocoReport) {
|
||||||
}
|
}
|
||||||
def projects = collectProjects { ['vector','matrix-sdk-android'].contains(it.name) }
|
def projects = collectProjects { ['vector','matrix-sdk-android'].contains(it.name) }
|
||||||
dependsOn {
|
dependsOn {
|
||||||
[':matrix-sdk-android:testDebugUnitTest'] +
|
|
||||||
[':vector:testGplayDebugUnitTest'] +
|
[':vector:testGplayDebugUnitTest'] +
|
||||||
|
[':vector:connectedGplayDebugAndroidTest'] +
|
||||||
|
[':matrix-sdk-android:testDebugUnitTest'] +
|
||||||
[':matrix-sdk-android:connectedDebugAndroidTest']
|
[':matrix-sdk-android:connectedDebugAndroidTest']
|
||||||
}
|
}
|
||||||
initializeReport(it, projects, excludes)
|
initializeReport(it, projects, excludes)
|
||||||
|
|
Loading…
Reference in New Issue