Hi
I am facing issue concerning testing with GwtTestCase using ant.
I can run my tests in eclipse and they all pass.
(I ran all the tests of my project with the regular JunitRunner, with sources included)
But with ant, i constructed a similar classpath for the junit task, and i get this error.
[junit] - 1 client(s) haven't responded back to JUnitShell since the start
of the test.
[junit] Actual time elapsed: 60.014 seconds.
[junit] Try increasing this timeout using the '-testBeginTimeout minutes' op
tion
[junit] The default value of minutes is 1, i.e., the server waits 1 minute o
r 60 seconds.
[junit] )
[junit] Tests run: 7, Failures: 0, Errors: 7, Time elapsed: 71,764 sec
BUILD FAILED
And the message is effectively concise and give a tip to fix.
So i tried to use this parameter by using the ant "jvm" attribute
jvm="java -testMethodTimeout 2"
Then i get a strange junitvmwatcher NotFound error
[junit] java.io.FileNotFoundException: C:\workspace\MyWebProject\junitvmwatc
her55650195.properties (Le fichier spÚcifiÚ est introuvable)
[junit] at java.io.FileInputStream.open(Native Method)
[junit] at java.io.FileInputStream.<init>(FileInputStream.java:106)
[junit] at java.io.FileReader.<init>(FileReader.java:55)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
eAsForked(JUnitTask.java:1028)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:817)
BUILD FAILED
It seems that the junitvmwatcher thing append in other contexts than gwt, but i have not found any resolution.
It may be related to the "fork" parameter but i am not sure.
I am using GWT 2.1, ant 1.7.0 and junit 4.3.1
Could someone explain that ?
Does Eclipse google plugin have a default testBeginTimeout, different than the default-default one (60s) ?
Does anybody had fixed one or both of this problems ?
Is there a different way to set the testMethodTimeout value : system property, test itself ?
Thanks
Francois Wauquier