Boost logo

Boost Users :

From: Stefan Shishkov (sshishkov_at_[hidden])
Date: 2007-07-20 03:10:40


Gennadiy Rozental ??????:
> "Stefan Shishkov" <sshishkov_at_[hidden]> wrote in message
> news:newscache$lbodlj$kgn$1_at_news.obs.bg...
>> Hi,
>>
>> I'm using boost 1.33.1, but the question applies to 1.34 too. Is it
>> possible to create tests suites that contain test cases from different
>> translation units using only auto registration? Ex:
>>
>> in file1.cpp
>>
>> BOOST_AUTO_TEST_SUITE(BigSuite);
>>
>> auto-register test suites and cases here...
>>
>> BOOST_AUTO_TEST_SUITE_END();
>>
>> in file2.cpp
>>
>> BOOST_AUTO_TEST_SUITE(BigSuite);
>>
>> auto-register other test suites and cases here...
>>
>> BOOST_AUTO_TEST_SUITE_END();
>>
>> As result only one suite with name "BigSuite" should be registered.
>
> This is very reasonable. I've made the changes in my local copy to support
> this. Unfortunately It won't make into cvs until I am done with docs update
> in boostbook format.

Thanks, combined with the possibility to run tests suits by name this
will simplify our test projects. Our goal is to make some "high level"
test suits like smoke_tests, slow_tests, integration_tests, and to run
only some of them using command line parameters. Currently we are doing
this with manual registration.

As experiment, we also made some changes in 1.33.1 to achieve this with
auto-registration. Unfortunately the changes do not work with 1.34, so
we will wait until you publish this feature.

Best regards,
Stefan
>
> Thanks,
>
> 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