Running Hibernate tests in integration-test phase

2008-01-22 Thread Paul Benedict
Is it possible -- or even worthwhile -- to run Hibernate testing in the
Maven integration-test phase?

Typically, I have been running all my tests (unit and integration) under the
test phase. Can Maven handle splitting them apart? I am trying to keep my
test phase to be pure unit testing. If so, I'd like to know how people have
done this.

I am using Maven 2.0.8

Thanks,
Paul


Re: Running Hibernate tests in integration-test phase

2008-01-22 Thread Wayne Fay
The integration-test topic comes up pretty regularly on this list, so
do search the archives for more discussion.

We usually point people to notes on the wiki:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

Wayne

On 1/22/08, Paul Benedict [EMAIL PROTECTED] wrote:
 Is it possible -- or even worthwhile -- to run Hibernate testing in the
 Maven integration-test phase?

 Typically, I have been running all my tests (unit and integration) under the
 test phase. Can Maven handle splitting them apart? I am trying to keep my
 test phase to be pure unit testing. If so, I'd like to know how people have
 done this.

 I am using Maven 2.0.8

 Thanks,
 Paul


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running Hibernate tests in integration-test phase

2008-01-22 Thread Michael Meyer

Paul Benedict schrieb:
 Is it possible -- or even worthwhile -- to run Hibernate
 testing in the Maven integration-test phase?
I don't see the advantige of the integration-test phase. We always build 
our project with mvn clean install. The install phase also includes 
the integration-test phase but we don't want to run our 
integration-tests contiously. Once a day is enough for us.



Typically, I have been running all my tests (unit and integration) under the
test phase. Can Maven handle splitting them apart? I am trying to keep my
test phase to be pure unit testing. If so, I'd like to know how people have
done this.
We have a module that only contains intergration-tests. By default these 
test don't get executed (skipExec=true). We use a profile to run the 
integration tests during the nightly build. (Our integration tests run 
in the test phase). Executing mvn clean install will not execute 
integration tests. Running mvn clean install 
-Dtarget=integration-tests will initalize the database and execute all 
tests (unit tests + integration tests).


Cheers, michael



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]