Exclude AutoValue generated classes from code coverage. (#2335)

This commit is contained in:
Anuraag Agrawal 2020-12-18 00:54:59 +09:00 committed by GitHub
parent ccd8b1b697
commit 44859040ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ tasks.named('jacocoTestReport', JacocoReport) {
!it.absolutePath.contains("io/opentelemetry/proto/") &&
!it.absolutePath.contains("io/opentelemetry/exporter/jaeger/proto/") &&
!it.absolutePath.contains("io/opentelemetry/sdk/extension/trace/jaeger/proto/") &&
!it.absolutePath.contains("io/opentelemetry/api/trace/attributes/SemanticAttributes")
!it.absolutePath.contains("io/opentelemetry/api/trace/attributes/SemanticAttributes") &&
!it.absolutePath.contains("AutoValue_")
})
}
additionalSourceDirs(sourcesPath.incoming.artifactView { lenient(true) }.files)