Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] RE: WTP failed JUnit tests

Hi,
It seems that a feature we have introduced is breaking the WTP Junit
test. 18 Tests do no pass. But there is a 96% success rate :)
Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=198815 is describing
the added feature.

Failed results are:
http://build.eclipse.org/webtools/committers/wtp-R3.0-I/20080311185210/I
-I20080311185210-20080311185210/testResults/html/org.eclipse.jst.j2ee.te
sts.bvt.AutomatedBVT.html

I have tried to execute the tests localy, but I could not.
I have come to this method located in the AllPluginTests suite.

 public static IRuntime createJONASRuntime()  {
    	String s =
System.getProperty("org.eclipse.jst.server.jonas.432");
    	if (s == null || s.length() == 0)
    		return null;
    	try {
    		IRuntimeType rt =
ServerCore.findRuntimeType("org.eclipse.jst.server.core.runtimeType");
    		IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
    		wc.setLocation(new Path(s));
    		return wc.save(true, null);
    	} catch (Exception e) {
    		e.printStackTrace();
    		return null;
    	}
    }

Can you help me or point me to a guildline how should I configure jonas
localy in order for the PluginTests to be executed.

Best Regards,
Kiril


Back to the top