You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
I am attempting to upgrade the testing abilities of our automated testing suite to accept JUnit5 tests and when following The JUnit Platform Launcher API instructions I get the error "Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath". The cause is that the following is unable to find any instances of TestEngine:
Do you have any suggestions on how to ensure that the ServiceLoader is able to find an instance of TestEngine?
I have included org.junit.jupiter.engine, which contains JupiterTestEngine which implements TestEngine, as a required plugin. I have tried adding a direct path to the jupiter.engine JAR in the project's .classpath. I have tried creating an instance of JupiterTestEngine within the same file and it is created successfully, but still no TestEngines found by the service loader.
Added this to the .classplath: <classpathentry exported="true" kind="lib" path="/home/lbullen/Documents/eclipse/plugins/org.junit.jupiter.engine_5.0.0.v20170910-2246.jar"/>
Added the org.junit.jupiter.engine JAR to the lib folder then added it to be included in the binary build. (I'm stretching for a solution)
I am attempting to upgrade the testing abilities of our automated testing suite to accept JUnit5 tests and when following The JUnit Platform Launcher API instructions I get the error "Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath". The cause is that the following is unable to find any instances of
TestEngine:Do you have any suggestions on how to ensure that the
ServiceLoaderis able to find an instance ofTestEngine?I have included
org.junit.jupiter.engine, which containsJupiterTestEnginewhich implementsTestEngine, as a required plugin. I have tried adding a direct path to thejupiter.engineJAR in the project's.classpath. I have tried creating an instance ofJupiterTestEnginewithin the same file and it is created successfully, but still noTestEngines found by the service loader.This is for Eclipse and you can see the code base here:
http://git.eclipse.org/c/platform/eclipse.platform.releng.git/tree/bundles/org.eclipse.test
I added the following to the manifest:
Added this to the
.classplath:<classpathentry exported="true" kind="lib" path="/home/lbullen/Documents/eclipse/plugins/org.junit.jupiter.engine_5.0.0.v20170910-2246.jar"/>Added the
org.junit.jupiter.engineJAR to the lib folder then added it to be included in the binary build. (I'm stretching for a solution)And I'm trying to get the Tutorial code to work in an edited version of http://git.eclipse.org/c/platform/eclipse.platform.releng.git/tree/bundles/org.eclipse.test/src/org/eclipse/test/EclipseTestRunner.java with all the old JUnit code removed and
LauncherFactory.create();added to theEclipseTestRunnerconstructor.The text was updated successfully, but these errors were encountered: