Hey Ben, You can create a new Run configuration to run your tests. Open Run > Run configurations menu item, and double-click on the GWT JUnit Test. Finally, configure the created configuration to point to your test cases.
jason On Sun, Aug 2, 2009 at 6:56 AM, Ben2008 <[email protected]> wrote: > > Is there anyway to do this with eclipse only? > I do not want to have too much other stuff that will only complicate > my project ... > Best way is possibly to define a compile or build configuration in > eclipse that will serve my needs. > IF i click on that GWT compiler, just compile and run my test suite > thats all i want to have. > Maybe there is a chance to invoke the testsuite as soon as my server > starts up ... > for example if i run in hosted mode, my method xyz will be invoked and > that method will start up that Junit Tests ... > But i dont know how to start them manually. > > > Thanks for any help mates > > On Aug 1, 7:24 pm, Daniel Wellman <[email protected]> wrote: > > Are you using Ant or Maven? > > > > The Maven plugin (from Codehaus) has documentation on running tests > > here:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html > > > > For Ant, you'll run your tests using the standard JUnit task, but make > > sure to include your test and project source in the classpath, > > otherwise you'll get errors that code couldn't be found at test > > runtime. And as you mentioned, you'll need to compile your test code > > first before running the JUnit task. > > > > Dan > > > > On Jul 30, 3:23 pm, Ben2008 <[email protected]> wrote: > > > > > > > > > Hi folks, > > > onhttp://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html > > > > > "When developing a large project, a good practice is to integrate the > > > running of your test cases with your regular build process. When you > > > build manually, such as using ant from the command line or using your > > > desktop IDE, this is as simple as just adding the invocation of JUnit > > > into your regular build process. When building in a server > > > environment, there are a few extra considerations." > > > > > But i did not find any advice on the net how to implement automated > > > tests. > > > I use Eclipse 3.4 and Gwt 1.7 and my GreetTestCase works finde for > > > Client und Remote Testing. > > > How can i add this test to my build process? Like Compiling Project?- > Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
