Make src/test/resources/../Test.gwt.xml that inherits Core and has a do nothing entry point, then declare your test cases as being part of the Test module.
--r(k)c On Mar 11, 2009, at 5:05 PM, Matt Raible <[email protected]> wrote: > > I wish I understood your instructions below, but unfortunately can't > grock them. ;-) > > In my core module, I have src/main/java/**/*.java and > src/main/resources/**/Core.gwt.xml. I also have > src/test/java/**/*.java classes that extend GWTTestCase and test > classes in src/main/java. > > Are you suggesting that I split this core module into multiple > modules? Or are you suggesting I create an EntryPoint in src/test/java > and a src/test/resources/**/Core.gwt.xml that references that > EntryPoint? > > Thanks, > > Matt > > On Mar 11, 12:49 pm, "Robert \"kebernet\" Cooper" <[email protected]> > wrote: >> You would need to declare a "Test" module and inherit your core >> module. You can do this in src/test/java and src/test/resources. >> Basically the test cases are wanting to boostrap a complete module, >> then inject the JavaScript that results from compiling your >> GWTTestCases into a headless (insert HostedMode platform browser) >> instance. Just have your test cases remote "MyTestModule" as their >> module name. >> >> At this point if you are just packaging a JAR with the sources for >> the >> main module in it, you can ignore the "compile" target on your >> library, since the JUnitShell will use the same compiling classloader >> as the hosted mode browser. >> >> >> >> On Wed, Mar 11, 2009 at 12:37 PM, Matt Raible <[email protected]> >> wrote: >> >>> Is it possible to use gwt-maven to compile and (most importantly) >>> run >>> tests in a GWT Module? >> >>> I've created a module that doesn't have an entry point. The module >>> creates a JAR and I've proven it can work in another GWT module. >> >>> However, I have GWT tests (that extend GWTTestCase) in my module >>> that >>> I want to run with the gwt-maven plugin. Unfortunately, I get the >>> following error: >> >>> [ERROR] Module has no entry points defined >>> [ERROR] Build failed >>> [INFO] >>> --- >>> --- >>> ------------------------------------------------------------------ >>> [ERROR] BUILD ERROR >>> [INFO] >>> --- >>> --- >>> ------------------------------------------------------------------ >>> [INFO] Exception attempting to run script - compile.sh >> >>> Embedded error: compile.sh script exited abnormally with code - 1 >> >>> Is it possible to use the gwt-maven plugin to run tests in a >>> module w/ >>> o entry points? >> >>> Thanks, >> >>> Matt >> >> -- >> :Robert "kebernet" Cooper >> ::[email protected] >> Alice's cleartext >> Charlie is the attacker >> Bob signs and encryptshttp://pgp.mit.edu:11371/pks/lookup? >> op=get&search=0x9E8759F8 > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" 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/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
