Move slow or flaky tests to separate surefire execution

This lets us have most tests run immediately and with no retries and then have slower tests that may be flaky run later with retries.
This commit is contained in:
Liam Newman
2020-07-15 14:39:18 -07:00
parent 08bde72028
commit a3d3e83a49

47
pom.xml
View File

@@ -79,6 +79,14 @@
</testResources>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<!-- SUREFIRE-1226 workaround -->
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
@@ -280,11 +288,40 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<!-- SUREFIRE-1226 workaround -->
<trimStackTrace>false</trimStackTrace>
</configuration>
<executions>
<execution>
<id>default-test</id>
<configuration>
<excludes>
<exclude>**/extras/**</exclude>
<exclude>**/AbuseLimitHandlerTest</exclude>
<exclude>**/GHRateLimitTest</exclude>
<exclude>**/RequesterRetryTest</exclude>
<exclude>**/RateLimitCheckerTest</exclude>
<exclude>**/RateLimitHandlerTest</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>slow-or-flaky-test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<rerunFailingTestsCount>2</rerunFailingTestsCount>
<!-- There are some tests that take longer or are a little flaky. Run them here. -->
<includes>
<include>**/extras/**</include>
<include>**/AbuseLimitHandlerTest</include>
<include>**/GHRateLimitTest</include>
<include>**/RequesterRetryTest</include>
<include>**/RateLimitCheckerTest</include>
<include>**/RateLimitHandlerTest</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>