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
Introduce skipNativeTests
in Maven plugin
#179
Comments
As an alternative, it might be better to replace
|
I tend to think that
So this issue should be only about adding |
We could certainly do it like that for now and change it later if we desire (see below).
That's currently true, but if #76 gets implemented that would no longer be the case. |
Prior to this commit, the NativeTestMojo had a `skipTests` property. This meant that you could skip the tests, but that skipped the JVM tests as well as the native tests, since Maven Surefire looks for the same `skipTests` flag. In other words, there was previously no way to execute the JVM tests and skip only the native tests. This commit addresses this issue by introducing a new `skipNativeTests` flag that allows the user to explicitly disable only native testing support. For example, this new feature enables workflows that need to execute tests on the JVM using the agent in order to generate native configuration files without having to execute the tests within a native image. See the updated reference documentation for additional use cases. Closes graalvm#179
PR #193 is ready for review. |
Prior to this commit, the NativeTestMojo had a `skipTests` property. This meant that you could skip the tests, but that skipped the JVM tests as well as the native tests, since Maven Surefire looks for the same `skipTests` flag. In other words, there was previously no way to execute the JVM tests and skip only the native tests. This commit addresses this issue by introducing a new `skipNativeTests` flag that allows the user to explicitly disable only native testing support. For example, this new feature enables workflows that need to execute tests on the JVM using the agent in order to generate native configuration files without having to execute the tests within a native image. See the updated reference documentation for additional use cases. Closes #179
Overview
NativeBuildMojo
has askipNativeBuild
property.Whereas,
NativeTestMojo
has askipTests
property.This means that you can skip the tests, but that skips the JVM tests and the native tests, since Maven Surefire looks for the same
skipTests
property.Some workflows have the need to execute tests on the JVM using the
agent
in order to generate native configuration files but don't have the need to execute the tests within a native image.We should therefore support such use cases via a command line similar to the following.
mvn -Pnative -Dagent=true -DskipNativeTests test
Deliverables
skipNativeTests
property to skip only the native tests.The text was updated successfully, but these errors were encountered: