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

[GR-51916] Add missing JUnit 5 init policies. #573

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onLoad(NativeImageConfiguration config) {
);

if (getMajorJDKVersion() >= 21) {
/* new with simulated class initialization */
/* new with --strict-image-heap */
config.initializeAtBuildTime(
"org.junit.platform.engine.support.descriptor.ClassSource",
"org.junit.platform.engine.support.descriptor.MethodSource",
Expand All @@ -75,15 +75,21 @@ public void onLoad(NativeImageConfiguration config) {
"org.junit.platform.launcher.core.DefaultLauncher",
"org.junit.platform.launcher.core.DefaultLauncherConfig",
"org.junit.platform.launcher.core.EngineExecutionOrchestrator",
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$1",
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$2",
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$3",
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$4",
"org.junit.platform.launcher.core.LauncherDiscoveryResult",
"org.junit.platform.launcher.core.LauncherListenerRegistry",
"org.junit.platform.launcher.core.ListenerRegistry",
"org.junit.platform.launcher.core.SessionPerRequestLauncher",
"org.junit.platform.launcher.LauncherSessionListener$1",
"org.junit.platform.launcher.listeners.UniqueIdTrackingListener",
"org.junit.platform.reporting.shadow.org.opentest4j.reporting.events.api.DocumentWriter$1"
"org.junit.platform.reporting.shadow.org.opentest4j.reporting.events.api.DocumentWriter$1",
"org.junit.platform.suite.engine.SuiteEngineDescriptor",
"org.junit.platform.suite.engine.SuiteLauncher",
"org.junit.platform.suite.engine.SuiteTestDescriptor",
"org.junit.platform.suite.engine.SuiteTestEngine"
);
}

Expand Down
5 changes: 5 additions & 0 deletions docs/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ If you are using alternative build systems, see <<alternative-build-systems.adoc
[[changelog]]
== Changelog

=== Release 0.10.1

- Mark additional JUnit 5 types for build-time initialization for compatibility with Native Image's `--strict-image-heap` option.


=== Release 0.10.0

- Update version of GraalVM dependency to 22.3.5
Expand Down