Running JUnit 5 Suites with @SelectPackages #3664
Unanswered
drsgoodall
asked this question in
Q&A
Replies: 3 comments
-
The best way always is to provide an integration-test to demonstrate the issue or at least a small example project. What I rember is that suites have had problems in the past so there is a good chance that |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hopefully this repository will illustrate the problem https://github.com/drsgoodall/tycho-suite-selectpackages Run with |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #3709 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble with JUnit 5 test suites using @SelectPackages in particular. I can run them fine in Eclipse, but not with Tycho (4.0.6).
I have a test suite such as this,
However running in Tycho will result in
I've tried setting the
Eclipse-BundleShape
directive to dir, but this did not help.I believe it might be the class loader - running in Eclipse Thread.currentThread().getContextClassLoader() is
org.eclipse.pde.internal.junit.runtime.MultiBundleClassLoader
whereas in Tycho it isclass org.eclipse.tycho.surefire.osgibooter.CombinedClassLoader
Does anyone have any suggestions on getting this working?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions