Skip to content

Adds two new switches to the maven test goal #720

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hgschmie
Copy link

  • skipTestExecution (boolean), default is false

If true, create the native image for the tests but do not execute it. This allows the creation of the native images for testing even if they don't fully execute / tests fail. Otherwise, the build would stop at the first test failure.

  • failNoTests (boolean), default is true

If true, fail building if no tests were found. In multi-module builds, there are often modules that have no tests (documentation) or tests are enabled/disabled by profiles (slow tests, e2e tests etc.). This switch allows for a concise configuraiton of the native plugin and then skipping modules where no tests were run without failing the build.

- skipTestExecution (boolean), default is false

If true, create the native image for the tests but do not execute it. This allows the creation of the native images for testing even if they don't fully execute / tests fail. Otherwise, the build would stop at the first test failure.

- failNoTests (boolean), default is true

If true, fail building if no tests were found. In multi-module builds, there are often modules that have no tests (documentation) or tests are enabled/disabled by profiles (slow tests, e2e tests etc.). This switch allows for a concise configuraiton of the native plugin and then skipping modules where no tests were run without failing the build.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 24, 2025
hgschmie added a commit to hgschmie/jdbi that referenced this pull request Apr 24, 2025
QnD attempt to add native compilation to the tree, run with `-Dnative`.

Note: Does not work with the out of the box plugin but requires
graalvm/native-build-tools#720 applied to the
graalvm native plugin and that the embedded junit version (in
https://github.com/graalvm/native-build-tools/blob/master/gradle/libs.versions.toml)
matches the version in jdbi (currently 5.13.0-M2).

native images build but don't work. This is only a "proof of concept, compiles" sketch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant