Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-releng-dev] JUnit5 support in org.eclipse.test

Hello,

I am working towards bringing JUnit5 support for our automated testing in the org.eclipse.test project but have ran into an issue.

When following the JUnit5 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:

Iterable<TestEngine> testEngines = ServiceLoader.load(TestEngine.class,ClassLoaderUtils.getDefaultClassLoader());

Do you have any suggestions on how to ensure that the service loader 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 witihn the same file and it is created successfully, but still no TestEngines found by the service loader.


--

Lucas Bullen

Software Engineering Intern

Red Hat

90 Eglinton Ave E #502,

Toronto, ON M4P 2Y3

lbullen@xxxxxxxxxx   


Back to the top