Skip to content

Commit 7605ed7

Browse files
committed
Improve tips for using endToEndTestsForEntireSpringTestModule()
See gh-29122
1 parent 6d83a95 commit 7605ed7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,16 @@ void endToEndTests() {
107107
@Test
108108
void endToEndTestsForEntireSpringTestModule() {
109109
// AOT BUILD-TIME: CLASSPATH SCANNING
110-
List<Class<?>> testClasses = createTestClassScanner()
110+
List<Class<?>> testClasses =
111+
// FYI: you can limit execution to a particular set of test classes as follows.
112+
// List.of(DirtiesContextTransactionalTestNGSpringContextTests.class, ...);
113+
createTestClassScanner()
111114
.scan()
112-
// FYI: you can limit execution to a particular package as follows.
115+
// FYI: you can limit execution to a particular package and its subpackages as follows.
113116
// .scan("org.springframework.test.context.junit.jupiter")
114117
.toList();
115118

119+
116120
// AOT BUILD-TIME: PROCESSING
117121
InMemoryGeneratedFiles generatedFiles = new InMemoryGeneratedFiles();
118122
TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles);

0 commit comments

Comments
 (0)