dev@ws-test-harness.java.net

Re: e2e test harness -- now with better error output!

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 13 Oct 2006 12:43:35 -0700

Ken Hofsass wrote:
> Fabian,
>
> Fabian Ritzmann wrote:
>
>> [java] Caused by: java.io.IOException: No such file:
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/lib/tools.jar
>> [java] at com.sun.xml.ws.test.Realm.addJar(Realm.java:68)
>> [java] at com.sun.xml.ws.test.Main.fillWorld(Main.java:305
>
>> The path in the java.io.IOException is indeed wrong and does not
>> correspond to what my JAVA_HOME env variable is set to.
>
> All the harness is doing to derive that path is to call
> System.getProperty(java.home) and append 'lib/tools.jar' and that
> section of code hasn't changed with recent file changes. Any idea where
> it could be finding that value?

Looks like on Mac the layout is different. Fabian should be able to tell
us where we can load tools.jar on Mac.


>> One other thing is that the Ant build should not report a successful
>> build in that case. You should probably set failonerror="true" when
>> invoking java in the run-tests macro.
>
> I agree the fact that it says "successful" is misleading. However, we
> don't generally want the test run to quit when one test fails/errors.
> Rather, we want to get the full set of results. Maybe there's a way to
> tell ant just to keep its fat mouth shut about 'success'. Or am I
> missing your point?

Perhaps we should return exit code 0 even if some tests fail, and use
non-0 exit code only for fatal problems.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com