Browse Source

Set failOnError flag to false endToEndTestsForEntireSpringTestModule()

pull/31432/head
Sam Brannen 2 years ago
parent
commit
39400901cd
  1. 5
      spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

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

@ -122,7 +122,7 @@ class AotIntegrationTests extends AbstractAotTests { @@ -122,7 +122,7 @@ class AotIntegrationTests extends AbstractAotTests {
// Scan all packages.
.scan()
// Or limit execution to a particular package and its subpackages.
// .scan("org.springframework.test.context.aot.samples.web")
// .scan("org.springframework.test.context.junit4")
// Only include test classes named *Tests so that we don't pick up
// internal TestCase classes that aren't really tests.
.filter(clazz -> clazz.getSimpleName().endsWith("Tests"))
@ -130,7 +130,8 @@ class AotIntegrationTests extends AbstractAotTests { @@ -130,7 +130,8 @@ class AotIntegrationTests extends AbstractAotTests {
// AOT BUILD-TIME: PROCESSING
InMemoryGeneratedFiles generatedFiles = new InMemoryGeneratedFiles();
TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles);
// Set failOnError flag to false to allow processing to continue.
TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles, new RuntimeHints(), false);
generator.processAheadOfTime(testClasses.stream());
// AOT BUILD-TIME: COMPILATION

Loading…
Cancel
Save