You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jimisola Laursen <li...@jimisola.com> on 2006/06/15 23:36:48 UTC
How to make mvn test run X times with different configurations
Hi!
We have set up product so that we can configure our unit tests to run with
our three supported databases. Now I am trying to figure out how "mvn test"
can run the tests for one database at a time but in the same "mvn test" run
(we want to make sure that we run the tests on the exact same build). We
configure what database to be tested using system properties.
I was thinking of using Profiles in somewhat way, but I haven't been able to
figure out how to redo the test phase with a new configuration/profile.
Would really appreciate some input on this matter.
Regards,
Jimisola
--
View this message in context: http://www.nabble.com/How-to-make-mvn-test-run-X-times-with-different-configurations-t1794846.html#a4890965
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to make mvn test run X times with different configurations
Posted by Edwin Punzalan <ep...@exist.com>.
The surefire-plugin runs the tests for maven. And I think plugins can
be run more than once using <executions>.
Hope that helps.
^_^
Jimisola Laursen wrote:
> Hi!
>
> We have set up product so that we can configure our unit tests to run with
> our three supported databases. Now I am trying to figure out how "mvn test"
> can run the tests for one database at a time but in the same "mvn test" run
> (we want to make sure that we run the tests on the exact same build). We
> configure what database to be tested using system properties.
>
> I was thinking of using Profiles in somewhat way, but I haven't been able to
> figure out how to redo the test phase with a new configuration/profile.
>
> Would really appreciate some input on this matter.
>
> Regards,
> Jimisola
> --
> View this message in context: http://www.nabble.com/How-to-make-mvn-test-run-X-times-with-different-configurations-t1794846.html#a4890965
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org