Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce AotTestExecutionListener API in the TestContext framework #29070

Closed
sbrannen opened this issue Sep 4, 2022 · 0 comments
Closed

Introduce AotTestExecutionListener API in the TestContext framework #29070

sbrannen opened this issue Sep 4, 2022 · 0 comments
Assignees
Labels
in: test Issues in the test module theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Sep 4, 2022

Overview

The newly introduced TestRuntimeHintsRegistrar API allows one to register hints specific to a given test class; however, there are scenarios in which the logic involved in determining what might need run-time hints resides in a TestExecutionListener.

For example, the SqlScriptsTestExecutionListener contains private logic for determining default SQL scripts, and that logic should not be duplicated outside the SqlScriptsTestExecutionListener.

In light of that, we should introduce an AotTestExecutionListener API that extends TestExecutionListener and allows a TestExecutionListener to opt in for AOT processing support, analogous to what the AotContextLoader API does for a SmartContextLoader.

Related Issues

@sbrannen sbrannen added in: test Issues in the test module type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Sep 4, 2022
@sbrannen sbrannen added this to the 6.0.0-M6 milestone Sep 4, 2022
@sbrannen sbrannen self-assigned this Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant