Community
Participate
Working Groups
Since we now produce I-builds on a regular basis, as a next step we could run unit tests for each build. It should include both junits for server as well as javascript tests I guess client side guys are working on.
The test feature & bundles are now being fetched, built and installed into an orion server in the nightly builds. The tests are not yet actually being run.
Created attachment 188484 [details] error log I have hooked up the tests to run in the releng builds, however they are failing early with java.lang.NoClassDefFoundError: junit/framework/TestListener I'm not sure what the problem is.
We are trying to do classname=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter EclipseTestRunner.class.getClassLoader().loadClass(classname); The EclipseTestRunner.class.getClassLoader() should be the osgi class loader for org.eclipse.test. This is able to see the required junit.framework.TestListener class. However, I think that we actually delegate to the org.apache.ant osgi class loader to load XMLJUnitResultFormatter, and that classloader is not able to see junit.framework because ant is not wired to junit. If this is correct, I'm not sure how the unit tests are supposed to work.
The problem is that we were missing the org.eclipse.ant.optional.junit fragment which adds the required dependency
This is done. We are currently running org.eclipse.orion.server.tests.AllServerTests org.eclipse.orion.server.tests.filesystem.git.AllTests To add tests to be run, a test bundle just needs to contain a test.xml file though the html build results page will need to be updated to show any additions.
Awesome, thanks Andrew.