Hi,

I would like to run both unit tests and integration tests in the same project. 
I don't want to create a separate module for integration tests (unlike Better 
Builds With Maven book).

With only one project (and one pom), I want the following lifecycle:

Phase              |    Action
---------------------------------------------
compile           |  compile src/main/java
...
test-compile    |  compile src/test/java
test                 |   run unit test that are in target/test-classes
...
pre-integration-test | compile src/it/java in target/it-classes
integration-test       |  run it tests that are in target/it-classes


The problem I have is for compiling and running IT tests. The compiler plugin 
only have two goals (compiler:compile and compiler:testCompile). In BBWM book, 
the testCompile goal is "customized" to fit with src/it directory, but this 
configuration prevent running unit test, because we have to define 
<testSourceDirectory>src/it</testSourceDirectory>.

How can I run both unit tests and integration tests ?

Thank you

Julien




        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Reply via email to