2009/12/8 Patrick Johnmeyer <pjohnme...@gmail.com>

> Note that you can't pass the template instantiation into TEST_FIXTURE
> directly. You have to typedef to a type with no template parameters
> (at least in MSVC).
>
> On Dec 7, 2009, at 10:50 PM, "Phlip" <phlip2...@gmail.com> wrote:
>
> > TEST_FIXTURE(tester<dove>, test_one_way) { test_one_way() }
> > TEST_FIXTURE(tester<dove>, test_another_way) { test_another_way() }
> >
>
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> unittest-cpp-devel mailing list
> unittest-cpp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel
>


If you mean that these are setup and
called for every test, then you can use simple inheritance with your
fixtures. All fixtures in your suite inherit from one master fixture.

This was one of the things which I dislike about the library, I found myself
writing poor quality code to enable setup and teardown. Ie classes which
should not have been in a hierarchy were being forced by the restriction of
the library.
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
unittest-cpp-devel mailing list
unittest-cpp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel

Reply via email to