On Jan 10, 8:33 pm, Marco Massenzio <[email protected]> wrote: > Following the guidelines > athttp://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec... > I've put my unit tests into a test/ folder. > > In fact, in order to have Eclipse run the GWT tests as, well, "GWT > Unit Tests" and the server-side as ordinary "JUnit Tests", I've > created to additional subfolders: test/gwttests and test/unittests. > > This all works as intended, and I can happily run the unit tests as > intended. > > However, I find a bit annoying to receive this kind of errors when I > run the GWT Compiler: > > Compiling module com.alertavert.gwt.simple.Simple_gwt > Validating newly compiled units > [ERROR] Errors in 'file:/home/marco/galileo-workspace/simple_gwt/ > test/gwttests/com/alertavert/gwt/simple/client/ > OneButtonPanelTest.java' > [ERROR] Line 25: No source code is available for type > com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a > required module? > [ERROR] Errors in 'file:/home/marco/galileo-workspace/simple_gwt/ > test/gwttests/com/alertavert/gwt/simple/client/Simple_gwtTest.java' > [ERROR] Line 21: No source code is available for type > com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a > required module? > Compiling 6 permutations > ..... > > Compilation succeeds, so, again, I could just grind my teeth and carry > on with life. > However, I still have that nagging feeling that I'm missing something > that will, eventually, blow up in my face, when I least can afford it: > does anyone know whether (a) this is "intended behaviour" and (b) is > there any way to tell the compiler "yes, dahlin', I know you can't > find GwtTestCase, but it's fine, please leave that test/ directory > alone, will ya?" > > Thanks in advance!
Hi, Have a look at http://groups.google.com/group/google-web-toolkit/t/7a62294ddc615c3f where I exposed some solutions. See also http://groups.google.com/group/google-web-toolkit/t/11ff6b182e27cbb8 which is a request for enhancement of the Eclipse Plug-in to do this more or less "automagically". For the time being however, you'd have to tweak your *.launch class path by hand (or use the Ant script generated by webAppCreator –or your own– to compile your project)
-- 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.
