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. Polishing - Switch to TestWatcher TestWatchMan is deprecated. INT-3152 Polishing Show Skipped Tests as 'Ignored' In test report. JIRA: https://jira.springsource.org/browse/INT-3152
This commit is contained in:
committed by
Artem Bilan
parent
b81e9255d2
commit
bddbc5b6fb
@@ -24,10 +24,12 @@ import static org.junit.Assert.assertTrue;
|
||||
import java.net.Socket;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.springframework.integration.Message;
|
||||
import org.springframework.integration.ip.util.TestingUtilities;
|
||||
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;
|
||||
|
||||
@@ -38,6 +40,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