Browse Source

Improve tips for using endToEndTestsForEntireSpringTestModule()

See gh-29122
pull/29136/head
Sam Brannen 3 years ago
parent
commit
7605ed7862
  1. 8
      spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

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

@ -107,12 +107,16 @@ class AotIntegrationTests extends AbstractAotTests { @@ -107,12 +107,16 @@ class AotIntegrationTests extends AbstractAotTests {
@Test
void endToEndTestsForEntireSpringTestModule() {
// 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()
// 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);

Loading…
Cancel
Save