Hi,
I'm having trouble running GWT Junit tests from a junit ant task.
If I use a java task to invoke the test runner:
<java classname="junit.textui.TestRunner" fork="true"
maxmemory="512M">
<arg value="-Dgwt.args="-out www-test""/>
<arg value="com.avaya.client.CallTimerTest" />
<classpath location="${project.src}"/>
<classpath location="${build.classes}"/>
<classpath location="./test"/>
<classpath location="${project.base.dir}/lib/rocket.jar"/>
<classpath location="${project.base.dir}/lib/gwt-dnd-2[1].5.2.jar"/>
<classpath location="${junit.home}/junit-4.4.jar"/>
<classpath location="${gwt.home}/gwt-user.jar"/>
<classpath location="${gwt.home}/gwt-dev-linux.jar"/>
<classpath location="${gwt.home}"/>
<classpath refid="junit.classpath"/>
</java>
It runs my tests ok but I don't get the test results in the form that
you get with the
xml test formatter in the junit ant task.
If I try and do the same thing from a junit ant task:
<junit fork="yes">
<classpath location="${project.src}"/>
<classpath location="${build.classes}"/>
<classpath location="./test"/>
<classpath location="${project.base.dir}/lib/rocket.jar"/>
<classpath location="${project.base.dir}/lib/gwt-dnd-2[1].5.2.jar"/>
<classpath location="${junit.home}/junit-4.4.jar"/>
<classpath location="${gwt.home}/gwt-user.jar"/>
<classpath location="${gwt.home}/gwt-dev-linux.jar"/>
<classpath location="${gwt.home}"/>
<classpath refid="junit.classpath"/>
<formatter type="xml" />
<<jvmarg value="-Dgwt.args="-out www-test""/>
<jvmarg value="-Xmx512M"/>
<test name="com.avaya.client.CallTimerTest" todir="$
{build.junitreports.dir}"/>
</junit>
I get a class not found error for
com.google.gwt.dev.shel.GWTShellServlet and it doesnt manage to invoke
the shell so it times out.
Anybody and thoughts on why the two behave differently? Or failing
that, how I can get the results xml formatted (I want to pass them
into cobertura) when running the junit test runner from a java ant
task?
I am running on Ubuntu 7.1, GWT version 1.5.0.
Best regards,
-Graham Richards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---