-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
@DisabledOnNativeImage is not working on class level #5586
Comments
It looks like the annotation is missing a |
Well, it does not make any sense to disable all the tests, or? |
I think that |
To me If
Do understand what you mean by this. |
PR created: #5590 |
So the use case is that you would like to inherit some instance methods from the
That's a good point. But it could be a mistake too.
@rsvoboda in your example, if you don't want to "inherit" the methods from |
The benefit of disabled tests is that you see warnings in the log, e.g |
Hm, I don't see any benefit in seeing warnings for methods annotated with
And my point is that Anyway, I do understand your arguments. So +0 for the impl. |
@DisabledOnNativeImage
is not working on class level, works only on method level,@Target
is set toElementType.TYPE
andElementType.METHOD
.I expect that no tests are executed in native mode when this annotation is put on class level.
quarkus/test-framework/junit5/src/main/java/io/quarkus/test/junit/DisabledOnNativeImage.java
Lines 9 to 12 in 0796d71
@gwenneg can you take a look ?
Steps to reproduce:
Add DisabledOnNativeImage annotation
NativeGreetingResourceIT is executed:
The text was updated successfully, but these errors were encountered: