Skip to content

Commit

Permalink
MAINT: exclude main class from coverage
Browse files Browse the repository at this point in the history
Signed-off-by: George Chen <[email protected]>
  • Loading branch information
chenqi0805 committed Aug 14, 2024
1 parent a6d078f commit 21f2aa2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data-prepper-plugin-schema-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,15 @@ dependencies {
}
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}

jacocoTestCoverageVerification {
afterEvaluate {
classDirectories.from = files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
// Exclude main class
'org/opensearch/dataprepper/schemas/DataPrepperPluginSchemaExecute.class'
])
})
}
}

0 comments on commit 21f2aa2

Please sign in to comment.