Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Provide a way to execute tests with regular code path (not AOT one) #1356

@sdeleuze

Description

@sdeleuze

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions