[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
Re: [tycho-user] JUnit 5 support
 | 
Thanks, I have reported https://bugs.eclipse.org/bugs/show_bug.cgi?id=545894
Removing parallel mode I still cannot run my test project,
I have these in logs
!ENTRY org.eclipse.tycho.surefire.junit5 2 0 2019-03-28 15:31:22.803
!MESSAGE Could not resolve module: org.eclipse.tycho.surefire.junit5 [198]
  Unresolved requirement: Import-Package: javax.lang.model
!ENTRY org.eclipse.osgi 4 0 2019-03-28 15:31:22.804
!MESSAGE Application error
!STACK 1
org.apache.maven.surefire.util.SurefireReflectionException: 
java.lang.ClassNotFoundException: 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
    at 
org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:249)
    at 
org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:133)
    at 
org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:265)
    at 
org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:118)
    at 
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:83)
    at 
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:110)
    at 
org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at 
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:592)
    at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:205)
    at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
    at 
org.eclipse.tycho.surefire.osgibooter.CombinedClassLoader.findClass(CombinedClassLoader.java:37)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at 
org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:241)
    ... 24 more
Arnaud
On 28/03/2019 15:07, Mykola Nikishov wrote:
The error seems wrong because junit 5 is > to junit 4.7 so parallel
mode should be working with junit 5