Skip to content

Commit

Permalink
Workaround limitation of jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Nov 19, 2021
1 parent e3003e5 commit 5844b58
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -800,49 +800,9 @@
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>
process-test-classes
</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Copy production classes into folder for running tests -->
<mkdir dir="${basedir}/target/classes-test-java11" />
<delete>
<fileset dir="${basedir}/target/classes-test-java11" includes="**/*"/>
</delete>
<copy todir="${basedir}/target/classes-test-java11">
<fileset dir="${basedir}/target/classes" includes="org/**/*" />
<fileset dir="${basedir}/target/classes/META-INF/versions/11" includes="org/**/*" />
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>java11-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<classesDirectory>${project.basedir}/target/classes-test-java11</classesDirectory>
<useSystemClassLoader>false</useSystemClassLoader>
<excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile>
<argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=httpclient</argLine>
</configuration>
</execution>
<execution>
<id>java11-jar-test</id>
<phase>integration-test</phase>
Expand Down

0 comments on commit 5844b58

Please sign in to comment.