|
Boost Users : |
Subject: Re: [Boost-users] unit test: apply same test case to different fixtures
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-07-08 11:27:00
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Gennadiy Rozental
> Sent: 08 July 2009 16:17
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] unit test: apply same test case to different
> fixtures
>
> Steven Watanabe <watanabesj <at> gmail.com> writes:
>
> > >> BOOST_FIXTURE_TEST_CASE( test_case1 , FIXTURES((T1)(T2)(T3)) )
> > >> {
> > >> }
> > >>
> > >
> > > The question is how to run the test case on T1 then on T2 then ....
> on Tn ,
> > > on each one separately
>
> I must say you left me a bit puzzled. What does it you are trying to
> do? Run the
> same code against different fixtures? Kinda weird, don't you think?
>
> >
> > In other words, you'd like there to be a
> > BOOST_FIXTURE_TEST_CASE_TEMPLATE
> > to complement
> > BOOST_AUTO_TEST_CASE_TEMPLATE
>
> Not really, as far as I can tell.
>
> Gennady
The different fixtures have the same member names, even if their types are
different
and the test case code uses those member with the same syntax... It's bit
like if the
fixture was a template argument...
regards,
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net