Created
November 5, 2023 07:25
-
-
Save smoralb/e8d9050f382532bf71fa8f468b0e43ab to your computer and use it in GitHub Desktop.
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
apply plugin: 'jacoco' | |
apply from: "../reports/jacoco/jacoco-report-exclusions.gradle" | |
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) { | |
group = "Reporting" | |
description = "Generate Jacoco coverage reports after running tests." | |
getClassDirectories().from(fileTree( | |
dir: "$buildDir/tmp/kotlin-classes/debug", | |
excludes: jacocoExclusions)) | |
getSourceDirectories().from(files(["$projectDir/src/main/java"])) | |
getExecutionData().from(files("$buildDir/jacoco/testDebugUnitTest.exec")) | |
reports { | |
xml.required = true | |
html.required = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment