You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NBT allows to invoke an existing test suite in a native image. For that to work, we need to process each test context ahead-of-time and make sure that the optimized version is available in the classpath that NBT uses.
The underlying feature is being implemented in the core framework. See spring-projects/spring-framework#28825 which should provide a main class to invoke similar to our AotProcessor.
Things to consider:
Create a test mojo in the Maven Plugin that invokes the main class as part of the process-test-classes phase. As part of this work, some of the code in the existing AotGenerateMojo can be refactored to be reused (typically the bits that do the compilation and copying).
Create a new Gradle task that invokes the main class
Update the native maven profile to include a call to the new mojo. This is worth a discussion as the testing with native bit could be totally opt-in. Perhaps it could be added but skipped by default with a way to enable it using a property?
wilkinsona
changed the title
Introduce support for processing test contexts Ahead-of-time
Introduce support for processing test contexts ahead-of-time
Sep 2, 2022
NBT allows to invoke an existing test suite in a native image. For that to work, we need to process each test context ahead-of-time and make sure that the optimized version is available in the classpath that NBT uses.
The underlying feature is being implemented in the core framework. See spring-projects/spring-framework#28825 which should provide a main class to invoke similar to our
AotProcessor
.Things to consider:
process-test-classes
phase. As part of this work, some of the code in the existingAotGenerateMojo
can be refactored to be reused (typically the bits that do the compilation and copying).native
maven profile to include a call to the new mojo. This is worth a discussion as the testing with native bit could be totally opt-in. Perhaps it could be added but skipped by default with a way to enable it using a property?Naming wise, we started a discussion in #31918.
Sub Tasks:
The text was updated successfully, but these errors were encountered: