Hi Napolean,

Thanks for the detailed reply and the additional links.It is a lot clearer
to me now.

I was able to run integration-phase(without using cargo for it) with clover.

But i have some related queries:

Will i be still be able to use clover reports with cargo for in-container
testing to get reports for the tests after they are run inthe container?
Any option to access the Integrations tests through web browser as cargo
deploys the test war with certain  web-context).

Regards
Raju




Napoleon Esmundo Ramirez-2 wrote:
> 
> Hello Raju,
> 
> The cargo-maven2-plugin has the ability to start and stop the container,
> and
> it can also deploy the war to the container.  This enables you to achieve
> in-container testing using junit.  The sample pom.xml Kalle provided us
> shows that the cargo plugin starts the container at the
> pre-integration-test
> phase and stops the container at the post-integration-test phase.  The
> junit
> test cases are executed in the integration-test phase (between the
> start/stop of the container), giving you the container environment you
> need
> for the junit tests during their execution.  An important thing to
> consider
> is that the junit test cases must be placed in a directory other than the
> src/main/test in order to prevent maven2 executing them in the test phase
> (when the container isn't started yet).
> 
> Other examples include the web ui tests for archiva and continuum,
> http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-webapp-test/pom.xmland
> http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/pom.xmlrespectively.
> 
> You can also read on the cargo-maven2-plugin at
> http://cargo.codehaus.org/Maven2+plugin for more details.
> 
> Cheers!
> Nap
> 
> On 3/28/07, raju <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi  Kalle,
>>
>> Thanks for the link.I have some doubts:
>>
>> Does cargo plug-ins actually run or has ability to run the integration
>> tests
>> or it just starts the servers,deploys the war containing the tests?
>> Sorry if the question sounded out of context.
>>
>> I am asking the above question because  i was trying to achieve
>> in-container
>> testing for junit tests.Thought of cactus initially but JunitEE seems to
>> be
>> better but that doesnt have a Maven plugin.Maybe need do an ant call from
>> within Maven?
>>
>> Regards
>> Raju
>>
>>
>> Kalle Korhonen-2 wrote:
>> >
>> > http://svn.codehaus.org/trails/trunk/trails/examples/simple/pom.xml
>> >
>> > Kalle
>> >
>> > On 3/27/07, raju <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi,
>> >>
>> >> I need to build and deploy Junit Integration tests to weblogic and run
>> >> the
>> >> integration tests.I think cargo plug-in helps one achieve that.
>> >>
>> >> A sample pom file to achieve this would be of great help.Server could
>> be
>> >> anything.
>> >>
>> >>
>> >> Once deployed as a war i need to invoke the tests using the webapp
>> .Any
>> >> suggestion on this.
>> >>
>> >> Has anyone tried out something on similar lines.
>> >>
>> >> Thanks in advance.
>> >>
>> >> Regards
>> >> Raju
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9707277
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9713129
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9715150
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