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
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Currently, tests are executed using the AOT code path when AOT test code has been generated. This is the default because most of the time, it brings added value to validate the AOT codepath on the JVM before going to native and allows to debug the code as it will run on native. On application side, the default is to not use AOT by default (and allow to enable AOT codepath via -DspringAot=true) in order to keep the DevXP that Spring Boot developers know and love with Devtools hot reload capabilites.
We should provide a command line option to allow to use the regular code path for test, something that would be conceptually -DspringAot=false. But unlike application, test execution is forked and run via Maven or Gradle plugins. And we need to consider how that works in IDEs too.
The text was updated successfully, but these errors were encountered:
This commit:
- Use Spring property check instead of classpath check to enable
or not AOT test, that's more robust and prevent an IDEA bug
(see spring-atticgh-1395)
- Disable Maven AOT generation and execution with mvn test -DspringAot=false
- Introduce a Gradle aotTest task for AOT generation + execution
in order to allow executing regular tests with the test task
TODO find why ./gradlew aotTest does not behave like ./gradlew test:
- Flag like --debug-jvm to enable debug from command line do
not work
- Customization via the DSL like
test { testLogging { showStandardStreams = true } }
are not applied
Closesspring-atticgh-1338Closesspring-atticgh-1356Closesspring-atticgh-1395
Currently, tests are executed using the AOT code path when AOT test code has been generated. This is the default because most of the time, it brings added value to validate the AOT codepath on the JVM before going to native and allows to debug the code as it will run on native. On application side, the default is to not use AOT by default (and allow to enable AOT codepath via
-DspringAot=true
) in order to keep the DevXP that Spring Boot developers know and love with Devtools hot reload capabilites.We should provide a command line option to allow to use the regular code path for test, something that would be conceptually
-DspringAot=false
. But unlike application, test execution is forked and run via Maven or Gradle plugins. And we need to consider how that works in IDEs too.The text was updated successfully, but these errors were encountered: