Skip to content

Commit 3cf5db6

Browse files
committed
Exclude ParallelExecutionSpringExtensionTests.TestCase from build
Prior to this commit, ParallelExecutionSpringExtensionTests.TestCase was accidentally included in the build which skewed the number of tests in spring-test by 1000.
1 parent 9a71a8d commit 3cf5db6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-test/src/test/java/org/springframework/test/context/junit/jupiter/parallel/ParallelExecutionSpringExtensionTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.junit.jupiter.api.AfterEach;
2222
import org.junit.jupiter.api.BeforeEach;
23+
import org.junit.jupiter.api.Disabled;
2324
import org.junit.jupiter.api.RepeatedTest;
2425
import org.junit.platform.launcher.Launcher;
2526
import org.junit.platform.launcher.LauncherDiscoveryRequest;
@@ -54,6 +55,7 @@ void runTestsInParallel() {
5455
launcher.registerTestExecutionListeners(listener);
5556

5657
LauncherDiscoveryRequest request = request()//
58+
.configurationParameter("junit.jupiter.conditions.deactivate", "org.junit.jupiter.engine.extension.DisabledCondition")//
5759
.configurationParameter("junit.jupiter.execution.parallel.enabled", "true")//
5860
.configurationParameter("junit.jupiter.execution.parallel.config.dynamic.factor", "10")//
5961
.selectors(selectClass(TestCase.class))//
@@ -66,6 +68,7 @@ void runTestsInParallel() {
6668
}
6769

6870
@SpringJUnitConfig
71+
@Disabled
6972
static class TestCase {
7073

7174
@BeforeEach

0 commit comments

Comments
 (0)