Boost logo

Boost Users :

From: Ed Johnson (ed_at_[hidden])
Date: 2006-05-07 23:46:18


Gennadiy Rozental wrote:
> "Ed Johnson" <ed_at_[hidden]> wrote in message
> news:e3g5qn$rks$1_at_sea.gmane.org...
>> Ed Johnson wrote:
>>> In 1.33.1 release, is the following true?
>>>
>>> BOOST_FIXTURE_TEST_SUITE( suite_name, F ); //not supported
>>> BOOST_FIXTURE_TEST_CASE( test_name, F ); //not supported
>>>
>>> Thanks,
>>>
>>> Ed
>> BOOST_FIXTURE_TEST_SUITE wouldn't compile.
>
> It's later addition
>
>> BOOST_FIXTURE_TEST_CASE compiled and worked fine at first glance.
>
> Ok.
>
>> However, I made a BOOST_FIXTURE_TEST_CASE into a friend function of my
>> testee class, and got a compiler error.
>
> BOOST_FIXTURE_TEST_CASE is a macro. I am not sure what you are trying to do
> by declaring it a friend?

I want to be able to test private members of my classes while using the
Auto Test framework. I won't test private data that often, so it's not
that big a deal to use the BOOST_AUTO_TEST_CASE for those occasions.

We discussed it in this thread:
  [Unit-Test] How to test private functions

>
>> BOOST_AUTO_TEST_CASE works fine as a friend function of a testee.
>
> The same here.
>
> Gennadiy


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