From 06f192cdb578a47c8ad4af825bc8dd0c3ef7ce60 Mon Sep 17 00:00:00 2001 From: linghengqian Date: Mon, 11 Sep 2023 03:36:30 +0800 Subject: [PATCH] Fix the problem that `org.junit.jupiter.api.condition.EnabledOnOs` cannot be used in NativeTest --- .../junit/platform/config/jupiter/JupiterConfigProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/jupiter/JupiterConfigProvider.java b/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/jupiter/JupiterConfigProvider.java index fd6e98d9a..6b9c5433a 100644 --- a/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/jupiter/JupiterConfigProvider.java +++ b/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/jupiter/JupiterConfigProvider.java @@ -69,6 +69,7 @@ public class JupiterConfigProvider implements PluginConfigProvider { @Override public void onLoad(NativeImageConfiguration config) { String[] buildTimeInitializedClasses = new String[]{ + "org.junit.jupiter.api.condition.OS", "org.junit.jupiter.engine.config.EnumConfigurationParameterConverter", "org.junit.jupiter.engine.descriptor.ClassTestDescriptor", "org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor",