On 9/6/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Everything seems to be working except that I can't figure out how to get the compiler plugin to compile the right set of sources and put the resulting classes where I want them, so integration tests remain separate from unit tests.
...
Is there a way to achieve this, short of reorganizing the source tree and/or breaking the project up into modules?
Maven does not have good support for combining both unit tests and integration tests in the same module. You can do it by playing around with includes/excludes, but you're only allowed one testSourceDirectory per module. (And probably one target directory, though I haven't tried to change that.) Here's a recent thread that links to some examples: http://www.nabble.com/Multipart-question-regarding-releasing-with-an-assembly-and-integration-tests.-t2193916.html#a6072535 At least until Maven supports separate src/it/java and src/test/java directories, putting your integration tests in a separate module is the best way to go. This is described in the 'Better Builds with Maven' book. That said, we do combine unit and integration tests in the Shale example apps, and it works well enough. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
