Skip to content

Commit c94a108

Browse files
authored
fix native test (#1729)
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 947e9c3 commit c94a108

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

.github/workflows/native-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
version: v2025.12.0
1919
sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4
20-
env:
21-
MISE_ENV: native
20+
working_directory: .mise/envs/native
2221
- name: Run native tests
23-
run: mise run test
22+
working-directory: .mise/envs/native
23+
run: mise native-test

.mise/envs/native/mise.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tools]
2+
java = "graalvm-community-25.0.1"
3+
4+
[tasks.native-test]
5+
depends = "build"
6+
run = "../../mvnw test -PnativeTest"
7+
dir = "../../../integration-tests/it-spring-boot-smoke-test"
8+

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you're getting errors when running tests:
2929
### Running native tests
3030

3131
```shell
32-
mise --env native test
32+
mise --cd .mise/envs/native run native-test
3333
```
3434

3535
### Avoid failures while running tests

integration-tests/it-spring-boot-smoke-test/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,21 @@
136136
<buildArg>
137137
--initialize-at-build-time=org.junit.platform.suite.engine.SuiteTestDescriptor$LifecycleMethods
138138
</buildArg>
139+
<buildArg>
140+
--initialize-at-build-time=org.junit.platform.commons.logging.LoggerFactory$DelegatingLogger
141+
</buildArg>
142+
<buildArg>
143+
--initialize-at-build-time=org.junit.jupiter.engine.execution.ConditionEvaluator
144+
</buildArg>
145+
<buildArg>
146+
--initialize-at-build-time=org.junit.jupiter.engine.execution.InterceptingExecutableInvoker
147+
</buildArg>
148+
<buildArg>
149+
--initialize-at-build-time=org.junit.jupiter.api.extension.ConditionEvaluationResult
150+
</buildArg>
151+
<buildArg>
152+
--initialize-at-build-time=org.junit.jupiter.engine.execution.InvocationInterceptorChain
153+
</buildArg>
139154
</buildArgs>
140155
<!-- editorconfig-checker-enable -->
141156
</configuration>

mise.native.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)