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]

Reply via email to