Seems to me as well, You may plugin a simple ant task to do the copy for you in the generate-sources phase.
Hope I helped.. -----Original Message----- From: Nathan Coast [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 9:46 PM To: Maven Users List Subject: Re: executing junit (integration) tests against a different project Hi Nir, yes I was thinking that, but then there's a problem if the aggregator project has tests of its own, or if the aggregator project aggregates more than one overlay webapp. I'm thinking copying all test sources into a single folder may be the only solution. cheers Nathan Nir Feldman wrote: > You may change the testSourceDirectory in the surefire plugin to point > to the source directory of the other project in case you can achive a > relative path to it (e.g. > ${basedir}/../../<OTHER_PROJECT_NAME>/src/test/java ) > > Nir > > -----Original Message----- > From: Nathan Coast [mailto:[EMAIL PROTECTED] > Sent: Monday, November 27, 2006 8:47 PM > To: Maven Users > Subject: executing junit (integration) tests against a different project > > Hi, > > I have a slightly unusual situation where I have shared overlay webapps > that are assembled into standalone webapps and into larger aggregate > webapps. The httpunit (junit) integration tests are contained within > the overlay (component) project. However, I'd like to execute the same > suites of tests against the aggregate projects. The surefire plugin > relies upon having the test source files within the project being tested > to determine which tests to execute. > > Has anyone come up with a workaround for this situation? i.e. execute > tests in a project other than the one where the test sources exist? > > I'm thinking I'm going to require both the overlay and aggregator webapp > integration sources on the same filesystem. Then either multiple test > source directories or copy all test sources into a single dir before > executing surefire. > > cheers > Nathan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > --------------------------------------------------------------------- > 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] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
