Skip to content

Commit 457b785

Browse files
committed
try to fix native test
1 parent 40d8122 commit 457b785

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

instrumentation/logback/logback-appender-1.0/library/build.gradle.kts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,23 @@ graalvmNative {
4949
resources.autodetect()
5050

5151
agent {
52-
buildArgs.add("--initialize-at-build-time=org.junit.platform.launcher.core.HierarchicalOutputDirectoryProvider")
53-
buildArgs.add("--initialize-at-build-time=org.junit.platform.launcher.core.LauncherDiscoveryResult\$EngineResultInfo")
52+
val initializeAtBuildTime = listOf(
53+
"org.junit.jupiter.api.DisplayNameGenerator\$IndicativeSentences",
54+
"org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor\$ClassInfo",
55+
"org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor\$LifecycleMethods",
56+
"org.junit.jupiter.engine.descriptor.ClassTemplateInvocationTestDescriptor",
57+
"org.junit.jupiter.engine.descriptor.ClassTemplateTestDescriptor",
58+
"org.junit.jupiter.engine.descriptor.DynamicDescendantFilter\$Mode",
59+
"org.junit.jupiter.engine.descriptor.ExclusiveResourceCollector\$1",
60+
"org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor\$MethodInfo",
61+
"org.junit.jupiter.engine.discovery.ClassSelectorResolver\$DummyClassTemplateInvocationContext",
62+
"org.junit.platform.engine.support.store.NamespacedHierarchicalStore\$EvaluatedValue",
63+
"org.junit.platform.launcher.core.DiscoveryIssueNotifier",
64+
"org.junit.platform.launcher.core.HierarchicalOutputDirectoryProvider",
65+
"org.junit.platform.launcher.core.LauncherDiscoveryResult\$EngineResultInfo",
66+
"org.junit.platform.suite.engine.SuiteTestDescriptor\$LifecycleMethods",
67+
)
68+
buildArgs.add("--initialize-at-build-time=${initializeAtBuildTime.joinToString(",")}")
5469
}
5570
}
5671

0 commit comments

Comments
 (0)