You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Benedict <pb...@apache.org> on 2008/01/22 16:39:31 UTC
Running Hibernate tests in integration-test phase
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
Posted by Wayne Fay <wa...@gmail.com>.
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 <pb...@apache.org> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running Hibernate tests in integration-test phase
Posted by Michael Meyer <mi...@bluewin.ch>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org