Improve tips for using endToEndTestsForEntireSpringTestModule()

See gh-29122
This commit is contained in:
Sam Brannen 2022-09-10 20:09:47 +02:00
parent 6d83a959fb
commit 7605ed7862
1 changed files with 6 additions and 2 deletions

View File

@ -107,12 +107,16 @@ class AotIntegrationTests extends AbstractAotTests {
@Test @Test
void endToEndTestsForEntireSpringTestModule() { void endToEndTestsForEntireSpringTestModule() {
// AOT BUILD-TIME: CLASSPATH SCANNING // AOT BUILD-TIME: CLASSPATH SCANNING
List<Class<?>> testClasses = createTestClassScanner() List<Class<?>> testClasses =
// FYI: you can limit execution to a particular set of test classes as follows.
// List.of(DirtiesContextTransactionalTestNGSpringContextTests.class, ...);
createTestClassScanner()
.scan() .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") // .scan("org.springframework.test.context.junit.jupiter")
.toList(); .toList();
// AOT BUILD-TIME: PROCESSING // AOT BUILD-TIME: PROCESSING
InMemoryGeneratedFiles generatedFiles = new InMemoryGeneratedFiles(); InMemoryGeneratedFiles generatedFiles = new InMemoryGeneratedFiles();
TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles); TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles);