Skip stress tests on Travis

This commit is contained in:
James Agnew 2017-07-05 09:44:03 -04:00
parent c1d06084b7
commit d3fa442958
3 changed files with 17 additions and 1 deletions

View File

@ -627,6 +627,9 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkCount>1</forkCount> <forkCount>1</forkCount>
<excludes>
<exclude>**/stresstest/*</exclude>
</excludes>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
@ -642,6 +645,9 @@
<configuration> <configuration>
<forkCount>2</forkCount> <forkCount>2</forkCount>
<reuseForks>true</reuseForks> <reuseForks>true</reuseForks>
<excludes>
<exclude>**/stresstest/*</exclude>
</excludes>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -0,0 +1,5 @@
Note: Tests in this package are not executed by Travis, because travis
just gets mad that the build is taking too long. So make sure to run them
locally!
A normal build (mvn install) will run them.

View File

@ -1,4 +1,4 @@
package ca.uhn.fhir.jpa.provider.dstu3; package ca.uhn.fhir.jpa.stresstest;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
@ -17,6 +17,7 @@ import org.junit.*;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import ca.uhn.fhir.jpa.provider.dstu3.BaseResourceProviderDstu3Test;
import ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor; import ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor;
import ca.uhn.fhir.util.TestUtil; import ca.uhn.fhir.util.TestUtil;
@ -108,6 +109,10 @@ public class StressTestDstu3Test extends BaseResourceProviderDstu3Test {
protected Throwable myError; protected Throwable myError;
protected int myTaskCount = 0; protected int myTaskCount = 0;
public BaseTask() {
setDaemon(true);
}
public Throwable getError() { public Throwable getError() {
return myError; return myError;
} }