Subject: [boost] [boost.test] Correct usage?
From: Philip Bennefall (philip_at_[hidden])
Date: 2013-08-31 05:38:00
I just started writing unit tests for a large project that I am involved in,
and boost.test has been absolutely fantastic to work with so far. True the
documentation could be clearer, but as far as functionality I am very much
impressed with the library. I have a question though.
I read the following:
This concerns me. What is the status here? When I build boost_1_54_0, in my
stage/lib directory I see:
My test cases look as follows:
#define BOOST_TEST_MODULE MyProgram
BOOST_AUTO_TEST_CASE( some_test )
// Using BOOST_REQUIRE_EQUAL, BOOST_CHECK_EQUAL, BOOST_CHECK,
BOOST_REQUIRE_EQUAL_COLLECTIONS and friends here.
My questions are:
1. Are all these macros still supported and not depricated?
2. Is the structure correct? Am I depending on something depricated? Am I
including the right header? I am linking with the library mentioned above
(via auto-linking), which is why I am concerned about deprication.
Thanks in advance for any clarification on this.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk