Boost logo

Boost Users :

Subject: Re: [Boost-users] selective enabling/disabling of BOOST_AUTO_TEST_CASE
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-15 22:46:57


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

In Christ,
Steven Watanabe


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