BOOST.TEST Mixing automatic and manual test registratioI

Hi, Is it possible to mix manual and automatic test registration in Boost,.Test. Example: BOOST_AUTO_TEST_SUITE( ExampleTestSuite ) BOOST_AUTO_TEST_CASE( testcase1 ) { BOOST_TEST_MESSAGE("Test 1 in Example Test Suite"); BOOST_WARN_EQUAL(1, 1); BOOST_REQUIRE_MESSAGE(5 > 1, "Here is an example message. Something may be wrong"); } BOOST_AUTO_TEST_SUITE_END() Now I want to manually add a testcase to this testsuite. This seems to be important for me, as there is no automatic registration version for BOOST_PARAM_TEST_CASE(...) I also made a manualTestRegstration: test_suite* TestSuiteA = BOOST_TEST_SUITE("test_suiteA"); void manualTestCaseRegistration() { TestSuiteA->add( &test_case ); framework::master_test_suite().add( TestSuiteA ); } Is it possible to add a manual testcase(e.g.: test_case_b) to the ExampleTestSuite? Searching the internet I stumbled over following thread: https://svn.boost.org/trac/boost/ticket/7000 But it seems to me this patch never made it to release(at least until now). In fact( I guess) this could/would be exactly the feature I am looking for. Kind Regards and thanks for help Manuel _____________________________________________ Manuel Maier, B. Eng. Business Unit "Motion" / Research & Development Bernecker + Rainer Industrie-Elektronik Ges.m.b.H. B&R Strasse 1 5142 Eggelsberg Austria Tel: +43 7748 6586 Fax: +43 7748 6586 - 24 Email: manuel.maier@br-automation.com http://www.br-automation.com ____________________________________________________________ Firmenbuchnummer: Landesgericht Ried im Innkreis / FN 111651 v

[Please do not mail me a copy of your followup]
boost-users@lists.boost.org spake the secret code
Is it possible to mix manual and automatic test registration in Boost.Test.
Yes. This might help better than the official documentation: http://user.xmission.com/~legalize/tmp/boost.test/libs/test/doc/html/ specifically: http://user.xmission.com/~legalize/tmp/boost.test/libs/test/doc/html/test/gu...
This seems to be important for me, as there is no automatic registration version for BOOST_PARAM_TEST_CASE(...)
I show an example of registering such a test case here: http://user.xmission.com/~legalize/tmp/boost.test/libs/test/doc/html/test/re... -- "The Direct3D Graphics Pipeline" free book http://tinyurl.com/d3d-pipeline The Computer Graphics Museum http://computergraphicsmuseum.org The Terminals Wiki http://terminals.classiccmp.org Legalize Adulthood! (my blog) http://legalizeadulthood.wordpress.com

Richard
[Please do not mail me a copy of your followup]
boost-users <at> lists.boost.org spake the secret code
automation.com> thusly:
Is it possible to mix manual and automatic test registration in Boost.Test.
Yes. This might help better than the official documentation:
...
I show an example of registering such a test case here: ...
Neither of the links you provide answer original poster question. We should probably add a page to docs as for now there is an example only of doing this. As usual exact answer will depend on usage variant. Gennadiy

Manuel Maier
Hi, Is it possible to mix manual and automatic test registration in Boost,.Test.
Yes. Here is an example: http://www.boost.org/doc/libs/1_55_0/libs/test/example/unit_test_example_03.... pp HTH, Gennadiy
participants (3)
-
Gennadiy Rozental
-
legalize+jeeves@mail.xmission.com
-
Manuel Maier