Exclude some files from coverage entirely

This commit is contained in:
Liam Newman
2021-04-12 08:54:38 -07:00
committed by GitHub
parent 8fac7d317e
commit 927843ea83

22
pom.xml
View File

@@ -110,6 +110,16 @@
</goals>
<configuration>
<propertyName>jacoco.surefire.argLine</propertyName>
<excludes>
<!-- Code implemented externally -->
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.java</exclude>
<!-- Sample only -->
<exclude>org.kohsuke.github.example.*</exclude>
<!-- Deprecated -->
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
<exclude>org.kohsuke.github.GHPerson.1</exclude>
</excludes>
</configuration>
</execution>
<!-- attached to Maven test phase -->
@@ -151,18 +161,6 @@
</limit>
</limits>
<excludes>
<!-- Code implemented externally -->
<exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.**</exclude>
<exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory</exclude>
<!-- Sample only -->
<exclude>org.kohsuke.github.example.*</exclude>
<!-- Deprecated -->
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
<exclude>org.kohsuke.github.GHPerson.1</exclude>
<!-- TODO: Some coverage, but more needed -->
<exclude>org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment</exclude>
<exclude>org.kohsuke.github.GHIssue.PullRequest</exclude>