You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yan Huang <az...@gmail.com> on 2007/10/29 23:46:25 UTC
Test multiple DBs in sequence
Hello Folks,
If I want to run the same unit test cases against a list of DBs within a
single build, is there a way to configure it in pom.xml? Basically, let's
say I want to run the tests against oracle, sybase and mysql in sequence
within the same "test" phase, how can I do it? Maven1 has a jelly's tag
called "<j:forEach>" to navigate through a collection, how can I achieve the
same on maven2?
Thanks
Yan
Re: Test multiple DBs in sequence
Posted by Yan Huang <az...@gmail.com>.
I hope maven2 can provide such function in the future release. is it on the
future requirement list for maven2?
On 10/30/07, Steve Ebersole <st...@hibernate.org> wrote:
>
> On Monday 29 October 2007 05:46:25 pm Yan Huang wrote:
> > Hello Folks,
> >
> > If I want to run the same unit test cases against a list of DBs within a
> > single build, is there a way to configure it in pom.xml? Basically,
> let's
> > say I want to run the tests against oracle, sybase and mysql in sequence
> > within the same "test" phase, how can I do it? Maven1 has a jelly's tag
> > called "<j:forEach>" to navigate through a collection, how can I achieve
> > the same on maven2?
> >
> > Thanks
> > Yan
>
> I was never able to figure out a way to do it. We ended up with with
> different test runs, one for each DB, using profiles.
>
>
> http://fisheye.jboss.org/browse/Hibernate/core/trunk/testsuite/pom.xml?r=13985
>
> http://fisheye.jboss.org/browse/Hibernate/core/trunk/testsuite/src/test/resources/hibernate.properties?r=12891
>
> Depending upon how you 'prepare and then acquire' connections to the DB,
> you
> would be able to achieve this using a custom suite.
>
> --
> Steve Ebersole
>
> Hibernate Project Lead
> http://hibernate.org
>
> Principal Software Engineer
> http://redhat.com
> http://jboss.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Test multiple DBs in sequence
Posted by Steve Ebersole <st...@hibernate.org>.
On Monday 29 October 2007 05:46:25 pm Yan Huang wrote:
> Hello Folks,
>
> If I want to run the same unit test cases against a list of DBs within a
> single build, is there a way to configure it in pom.xml? Basically, let's
> say I want to run the tests against oracle, sybase and mysql in sequence
> within the same "test" phase, how can I do it? Maven1 has a jelly's tag
> called "<j:forEach>" to navigate through a collection, how can I achieve
> the same on maven2?
>
> Thanks
> Yan
I was never able to figure out a way to do it. We ended up with with
different test runs, one for each DB, using profiles.
http://fisheye.jboss.org/browse/Hibernate/core/trunk/testsuite/pom.xml?r=13985
http://fisheye.jboss.org/browse/Hibernate/core/trunk/testsuite/src/test/resources/hibernate.properties?r=12891
Depending upon how you 'prepare and then acquire' connections to the DB, you
would be able to achieve this using a custom suite.
--
Steve Ebersole
Hibernate Project Lead
http://hibernate.org
Principal Software Engineer
http://redhat.com
http://jboss.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org