INT-3152 Speed Up Build Times
Add a `@Rule` to skip long-runing tests during normal builds. Add the rule to long-running tests in gemfire, ip, jms, jmx. Add an environment variable `RUN_LONG_INTEGRATION_TESTS`; when set to true, all tests are run. Set the environment variable to true on all nightly builds. Build now runs in 13 minutes on my 3 year old laptop.
This commit is contained in:
@@ -27,6 +27,7 @@ import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
@@ -35,6 +36,7 @@ import org.springframework.integration.Message;
|
||||
import org.springframework.integration.ip.util.TestingUtilities;
|
||||
import org.springframework.integration.message.ErrorMessage;
|
||||
import org.springframework.integration.support.MessageBuilder;
|
||||
import org.springframework.integration.test.support.LongRunningIntegrationTest;
|
||||
import org.springframework.integration.test.util.SocketUtils;
|
||||
import org.springframework.integration.test.util.TestUtils;
|
||||
|
||||
@@ -44,6 +46,9 @@ import org.springframework.integration.test.util.TestUtils;
|
||||
*/
|
||||
public class ConnectionTimeoutTests {
|
||||
|
||||
@Rule
|
||||
public LongRunningIntegrationTest longTests = new LongRunningIntegrationTest();
|
||||
|
||||
@Test
|
||||
public void testDefaultTimeout() throws Exception {
|
||||
int port = SocketUtils.findAvailableServerSocket();
|
||||
|
||||
Reference in New Issue
Block a user