-
Notifications
You must be signed in to change notification settings - Fork 78
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
ClassNotFoundException while using the rerun junit5 functionality #57
Comments
I can test this on I20220517 by creating a Plug-in project that depends on org.junit.jupiter.api, and org.eclipse.jdt.junit5.runtime. Works fine. Is there some requires needed in JDT so it works in your scenario? |
After thinking about it, the jar containing the FailuresFirstMethodOrder class (currently org.eclipse.jdt.junit5.runtime) needs to be added on the classpath by default instead of manually, but I am not sure how to do this. I tried adding it in JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration() where we add jupiter jars to the classpath, but it wasn't successful. The feature will need to be marked incomplete and removed from the N&N until I can sort this out. |
I tried running the same test as JUnit test and it works fine so I'll leave the feature in and keep this as an open issue. The workaround is to add org.eclipse.jdt.junit5.runtime as a test plug-in dependency. |
A fix has been proposed to PDE to fix this. See issue: eclipse-pde/eclipse.pde#117 |
@vik-chand Can you review the PR mentioned above? |
The PDE changes have fixed this problem. |
While testing https://www.eclipse.org/eclipse/news/4.24/jdt.php#junit5-rerun-failures-first
While running re-run I get
The text was updated successfully, but these errors were encountered: