Skip to content

Commit

Permalink
Exclude ProjectInitialization.class from tests.
Browse files Browse the repository at this point in the history
The ProjectInitialization class is already being ignored during tests due to an `@Profile("!test")`.
Despite this coveralls still attempts to assess coverage.
Prevent coveralls from assessing coverage by excluding the ProjectInitialization.class entirely from both cobertura and jacoco.
  • Loading branch information
kaladay committed Sep 8, 2020
1 parent 6cc1d80 commit fb2e4f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Expand Up @@ -162,6 +162,9 @@
<ignore>java.util.logging.*</ignore>
<ignore>edu.tamu.app.config.AppEmailConfig</ignore>
</ignores>
<excludes>
<exclude>**/ProjectInitialization.class</exclude>
</excludes>
</instrumentation>
<formats>
<format>html</format>
Expand All @@ -173,6 +176,11 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/ProjectInitialization.class</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
Expand Down

0 comments on commit fb2e4f8

Please sign in to comment.