File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
core/deployment/src/main/java/io/quarkus/deployment/dev/testing
integration-tests/maven/src/test
resources-filtered/projects/test-nested-tests-mixed-with-normal-tests/src/main/resources Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .Objects ;
25
25
import java .util .Optional ;
26
26
import java .util .Set ;
27
+ import java .util .TreeSet ;
27
28
import java .util .concurrent .LinkedBlockingDeque ;
28
29
import java .util .concurrent .atomic .AtomicReference ;
29
30
import java .util .function .Function ;
@@ -644,7 +645,9 @@ private DiscoveryResult discoverTestClasses() {
644
645
}
645
646
646
647
Set <DotName > allTestAnnotations = collectTestAnnotations (index );
647
- Set <DotName > allTestClasses = new HashSet <>();
648
+ // Order matters here for nested tests
649
+ // We assume we have evaluated the parent of a class before evaluating it
650
+ Set <DotName > allTestClasses = new TreeSet <>();
648
651
Map <DotName , DotName > enclosingClasses = new HashMap <>();
649
652
for (DotName annotation : allTestAnnotations ) {
650
653
for (AnnotationInstance instance : index .getAnnotations (annotation )) {
@@ -680,7 +683,7 @@ private DiscoveryResult discoverTestClasses() {
680
683
}
681
684
var enclosing = enclosingClasses .get (testClass );
682
685
if (enclosing != null ) {
683
- String enclosingString = enclosing .toString ();
686
+ final String enclosingString = enclosing .toString ();
684
687
if (quarkusTestClassesForFacadeClassLoader .contains (enclosingString )) {
685
688
quarkusTestClassesForFacadeClassLoader .add (name );
686
689
}
Original file line number Diff line number Diff line change 12
12
import org .junit .jupiter .api .Assertions ;
13
13
import org .junit .jupiter .api .Disabled ;
14
14
import org .junit .jupiter .api .Test ;
15
- import org .junit .jupiter .api .condition .DisabledOnOs ;
16
- import org .junit .jupiter .api .condition .OS ;
17
15
18
16
import io .quarkus .maven .it .continuoustesting .ContinuousTestingMavenTestUtils ;
19
17
import io .quarkus .maven .it .verifier .MavenProcessInvocationResult ;
@@ -75,8 +73,6 @@ public void testNestedQuarkusTestMixedWithNormalTests()
75
73
76
74
}
77
75
78
- @ DisabledOnOs (OS .WINDOWS ) // Tracked by https://github.com/quarkusio/quarkus/issues/47913
79
- @ Disabled ("See https://github.com/quarkusio/quarkus/issues/48004" )
80
76
@ Test
81
77
public void testNestedQuarkusTestMixedWithNormalTestsContinuousTesting ()
82
78
throws MavenInvocationException , FileNotFoundException {
Original file line number Diff line number Diff line change 1
1
quarkus.test.continuous-testing =enabled
2
+ quarkus.test.display-test-output =true
2
3
greeting.message =Hello from Quarkus REST via config
You can’t perform that action at this time.
0 commit comments