to clarify:
-inside test-webapp I need to disable the tests (because jetty isn't
running), during the lifecycle the tests are compiled
-inside the webapp I need to access the test-cases of test-webapp and
integrate them inside phase integration-test. The access would be done by
passing the path to compiled test classes relatively (e.g.
../../test-webapp/target/test-classes). 

I guess there is no other way to do this?
That all feels very unnatural, maybe I better move the integration tests to
the webapp/ project itself (though I really prefer a dedicated test
module)... 

thanks again.

Stephen Connolly-2 wrote:
> 
> 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]
> 
> 
> 


-----
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.-tp24139775p24175375.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]

Reply via email to