Re: Test multiple DBs in sequence

2007-10-30 Thread Yan Huang
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 <[EMAIL PROTECTED]> 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 "" 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Test multiple DBs in sequence

2007-10-30 Thread Steve Ebersole
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 "" 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]