[GH-ISSUE #480] Run the automated tests over the native image #169

Closed
opened 2026-02-26 04:34:16 +03:00 by kerem · 1 comment
Owner

Originally created by @mageddo on GitHub (Jun 21, 2024).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/480

What is Happening

Automated tests are ran only over the jar version

What is Expected

Run the automated tests over the native image

Changes (Optional)

  • Use the latest nativecompile plugin feature called nativeTest
  • Create IntTests suite, they are comp tests which can be run within native image, they must run within the compTest task
  • Upgrade necessary deps
  • restassured causes native image compilation problems related to groovy, upgraded deps but not success. generate metadata using native image plugin fixed the problem
  • nativeIntTest must run in CI/CD
Originally created by @mageddo on GitHub (Jun 21, 2024). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/480 ## What is Happening Automated tests are ran only over the jar version ## What is Expected Run the automated tests over the native image ## Changes (Optional) * [x] Use the [latest nativecompile plugin feature][1] called nativeTest * [x] Create `IntTests` suite, they are comp tests which can be run within native image, they must run within the `compTest` task * [x] Upgrade necessary deps * [x] restassured causes native image compilation problems related to groovy, upgraded deps but not success. generate metadata using native image plugin fixed the problem * [x] `nativeIntTest` must run in CI/CD [1]: https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html#testing-support
kerem 2026-02-26 04:34:16 +03:00
Author
Owner

@mageddo commented on GitHub (Jul 3, 2024):

also see "Build a Native Executable with Resources Autodetection", looks like the plugin is capable to generate the reflection resources automatically at build time, maybe by instrumenting the app while the automated tests are running?

<!-- gh-comment-id:2207268985 --> @mageddo commented on GitHub (Jul 3, 2024): also see "[Build a Native Executable with Resources Autodetection][1]", looks like the plugin is capable to generate the reflection resources automatically at build time, maybe by instrumenting the app while the automated tests are running? [1]: https://graalvm.github.io/native-build-tools/latest/gradle-plugin-quickstart.html#build-a-native-executable-with-resources-autodetection
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#169
No description provided.