Boost.Test
に、どのようにして現在の自動テストケースの名前を取得できますか?Boost.Testでは、現在のテストの名前を取得する方法は?
例:例では
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(MyTest)
{
std::cerr << "Starting " << test_name << std::endl;
// lots of code here
std::cerr << "Ending " << test_name << std::endl;
}
は、私は、変数test_name
は "MyTestに" を含むようにしたいです。
[この](https://groups.google.com/forum/?fromgroups=#!topicを見てみましょう/ boost-list/ZzFmu14UfeQ)、これまでのところ私のために働いています –