GWT Integration testing.

75 views
Skip to first unread message

Victor Benarbia

unread,
Jun 4, 2012, 6:41:53 PM6/4/12
to grail...@googlegroups.com
Hi,

I'm able to run Unit test.
Is it possible to run integration test ? I mean a test based on GWTTestcase

When I try to run a test which extends to GWTTestcase. I'm getting an exception in "gwt test" and "gwtprod test" modes.
GWTTests :
testTreeLoading(GWT_PROD_MODE-com.arm.nimbus.gwttree.client.ApplicationTest)
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.junit.JUnitShell.compileForWebMode(JUnitShell.java:1093)
    at com.google.gwt.junit.JUnitShell.maybeCompileForWebMode(JUnitShell.java:1143)
    at com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl2(CompileStrategy.java:180)
    at com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl(CompileStrategy.java:112)
    at com.google.gwt.junit.SimpleCompileStrategy.maybeCompileModule(SimpleCompileStrategy.java:36)
    at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1340)
    at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
    at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
    at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)
    at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)

I do not know how get started...

Thanks,
Victor

Predrag Knežević

unread,
Jun 5, 2012, 4:00:12 AM6/5/12
to grail...@googlegroups.com
> I'm able to run Unit test.
> Is it possible to run integration test ? I mean a test based on GWTTestcase

You want to run gwt tests in integration phases, or? If yes, then
this is not possible, you can only run GWT test in unit phase, as
following:

grails test-app unit:gwt

or

grails test-app unit:gwtprod

Cheers,

Predrag
Reply all
Reply to author
Forward
0 new messages