I should add that I think this only works because there is a bug in surefire that doesn't run testng test classes correctly unless there is testng.xml file configured.
-----Original Message----- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:30 AM To: Maven Users List Subject: RE: [m2] Unit tests and integration tests in the same module? I was able to do by using testng and not providing a testng.xml file for the test phase, but only for the integration-test phase. It is kinda of a hack, but it works. -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 11:26 PM To: 'Maven Users List' Subject: RE: [m2] Unit tests and integration tests in the same module? I don't believe it's currently possible within the same build module. We started discussing it on http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies -Vincent > -----Original Message----- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: mardi 6 juin 2006 16:41 > To: Maven Users List > Subject: [m2] Unit tests and integration tests in the same module? > > [moved from [EMAIL PROTECTED] > > Context: We want to run both 'normal' unit tests, and integration > tests that require a webapp to be deployed in a container, from the > same module. > > On 6/5/06, Brett Porter <[EMAIL PROTECTED]> wrote: > > It *should* still be possible to achieve what you want currently (I > > thought Vincent's chapter discussed that, but I don't might be > > mistaken). It may take some effort, though, and I'm not sure of any > > existing examples. The 'integration-test' phase was meant to be a > > general hook to facilitate this where possible. > > The problem I keep running into is that there is only one > <build>/<testSourceDirectory>, and there is no > <profile>/<build>/<testSourceDirectory> in the model. If that > existed, it seems like you could get another execution of Surefire > using a second source directory. > > You're hinting that it's possible, though... what am I missing? > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]