Skip to content

Add support for processing test contexts ahead-of-time #28204

Closed
@snicoll

Description

@snicoll

Overview

Now that we can process an application context for AOT optimizations, we'd like to extend that feature by providing support in other parts of the portfolio. One that we have experimented with in Spring Native is processing the application contexts that the TCF uses for a module so that they are "native-friendly".

In practice, this would mean introducing something like TestContextAotProcessor that builds on top of ApplicationContextAotProcessor, pre-processing the test infrastructure for each context identified amongst a set of test classes.

We'd need at least one additional context to provide a "prepared" GenericApplicationContext for a MergedContextConfiguration as each "bootstrapper" can have its own logic baked in.

Related Issues

Metadata

Metadata

Assignees

Labels

in: testIssues in the test moduletheme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions