
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Thursday, September 16, 2010 3:47 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] selective enabling/disabling of BOOST_AUTO_TEST_CASE
AMDG
Suresh Kumar wrote:
I have several tests in my unit test file each of them uniquely named using the function BOOST_AUTO_TEST_CASE. I may not need to run all of them always and as of now what I do is to comment out the tests which I dont want to run.
Instead of commenting out code, is there any other way I can selectively enable or disable tests if i have created tests with BOOST_AUTO_TEST_CASE.
You can control which tests are run on the command line See http://www.boost.org/libs/test/doc/html/utf/user-guide/runtime-config/run- by-name.html
Well thanks Steven - Now that's something I have wanted to know but didn't dare ask ;-) But I have now squandered a few minutes trying again to find this information using Google (putting myself in the shoes of the OP). A search for "Running specific test units selected by their name" didn't get me to this page (on the first page at least). Adding site::boost.org helped reduce clutter from other unit test systems. Even "Running specific test units selected by their name" site:boost.org (note quotes mean search for exact text) didn't get to the current (or nearly) releases by name, and I didn't spot this page quickly. Using boost.org and entering "Running specific test units selected by their name" into the search box also didn't produce the latest docs page above, only out of date stuff. Limiting search to www.boost.org didn't get 1.44 docs (only misleading ref to 1.38). This may be why there are so many questions from puzzled users on this list? Is there anything we can do to make Google work better for us? Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com