-
Notifications
You must be signed in to change notification settings - Fork 64
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
Overridden test method: JUnitPlatformFeature unexpectedly failed with a(n) org.junit.platform.commons.JUnitException #541
Comments
I am reporting this here since |
@dnestoro Is there a chance at getting this triaged? |
Possibly fixed by #565 although I have not checked. |
|
We're seeing this exception on 0.10.3 as well. |
@stevenschlansker As a workaround, you can mark the overridden method with |
@danthe1st , thanks for the suggestion but ... which test case? The error message does not print out which test case causes the failure, and we have thousands of tests :( I suppose I can narrow the search to a test class that extends another, but still. If this issue really won't be fixed I will eventually invest the time to look at doing so... but given the number of users reporting this, I will hope for a fix in the next release for now :) |
@stevenschlansker |
Before reporting
Describe the bug
When overriding an
@Test
method and without marking the overridden method with@Test
, compilation of the test fails withError: Feature defined by org.graalvm.junit.platform.JUnitPlatformFeature unexpectedly failed with a(n) org.junit.platform.commons.JUnitException. Please report this problem to the authors of org.graalvm.junit.platform.JUnitPlatformFeature.
.To Reproduce
@Test
method@Test
mvn test
See this minimal reproducer (CI log here)
Expected behavior
Native compilation of tests succeed and the tests run successfully.
Logs
Full logs here
System Info (please complete the following information):
Linux
graalvm-community-jdk-21.0.1_linux-x64_bin
21
native-maven-plugin:0.9.28
Additional context
Full reproducer here
The text was updated successfully, but these errors were encountered: