From 7605ed7862905727ccfa57c9ca5d19390ec2f094 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 10 Sep 2022 20:09:47 +0200 Subject: [PATCH] Improve tips for using endToEndTestsForEntireSpringTestModule() See gh-29122 --- .../test/context/aot/AotIntegrationTests.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java b/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java index 19c53e15b352..1aaf81736f1c 100644 --- a/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java @@ -107,12 +107,16 @@ void endToEndTests() { @Test void endToEndTestsForEntireSpringTestModule() { // AOT BUILD-TIME: CLASSPATH SCANNING - List> testClasses = createTestClassScanner() + List> testClasses = + // FYI: you can limit execution to a particular set of test classes as follows. + // List.of(DirtiesContextTransactionalTestNGSpringContextTests.class, ...); + createTestClassScanner() .scan() - // FYI: you can limit execution to a particular package as follows. + // FYI: you can limit execution to a particular package and its subpackages as follows. // .scan("org.springframework.test.context.junit.jupiter") .toList(); + // AOT BUILD-TIME: PROCESSING InMemoryGeneratedFiles generatedFiles = new InMemoryGeneratedFiles(); TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles);