1. Have a look at the failsafe-maven plugin 2. if you insist on having the tests in a separate module, then test-webapp cannot depend on webapp, an you will need to add test-webapp as a dependency to webapp (with scope test) and then unpack it with (as surefire/failsafe do not scan jar files for test cases at present)
2009/6/22 aldana <[email protected]>: > > I want to setup a integration test for a webapp. > > my project structure (with a seperate test module): > parent/ > -test-webapp > -webapp > > requirement is: > - webapp (pre-integration-test phase) starts up with jetty:start > - test-webapp test cases are run (integration-test phase) > - webapp (post-integration-test phase) shuts down with jetty:stop > > currently I haven't found a way to combine these projects and the dependency > of phase runnings. The post-integration phase is always executed before the > integration-tests are run and thus fail. > > I had a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin > but no success. > Maybe there is a trick with the reactor plugin where I can pass such > lifecycle dependencies? > > thanks. > > ----- > manuel aldana > aldana((at))gmx.de > software-engineering blog: http://www.aldana-online.de > -- > View this message in context: > http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24139775.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
