I wanted to create a single gwt project which gets selenium tested just by typing ‘mvn test’. That is, I need plugins to
- compile,
- bring up gwt server,
- run selenium tests,
- bring down gwt server.
I am not able to find something for steps 2 and 4. Does anyone have experience with this?
Thanks,
Aman
Should be straightforward if you use the
integration-testphase instead:prepare-package⇒gwt:compilepre-integration-test⇒jetty:start(ortomcat7:start, or similar with another plugin)integration-test⇒ your selenium testspost-integration-test⇒jetty:stop(or equivalent for another plugin)If you’d like to run the selenium tests in DevMode, then I’m afraid there’s no way to do it: there’s no equivalent to
gwt:runthat would fork the process and allow its termination with another mojo (likejetty:start+jetty:stopvs.jetty:run)Also, maybe you could use Arquillian to start the server right from within your test, but that wouldn’t solve the issue of either compiling the GWT module or launching DevMode (these can be launched from Java code, but it’s discouraged)