This file contains 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
// packages to exclude for example generated classes, R class and models package, add all packages that you wish to exclude from test coverage | |
def fileFilter = [ | |
'**/models/**', | |
'**/*$ViewInjector*.*','**/*$ViewBinder*.*', | |
'**/R.class', '**/R$*.class', '**/BuildConfig.*', | |
'**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] | |
def debugTree = fileTree(dir: "${buildDir}/intermediates/classes/debug", excludes: fileFilter) | |
def mainSrc = "${project.projectDir}/src/main/java" | |
// override jacocTestReport task |