|
Boost : |
Subject: [boost] [Macro]Test Case grouping using Traits
From: Hemanth Choudary M V (RBEI/ETA1) (HemanthChoudary.MV_at_[hidden])
Date: 2013-04-24 00:43:34
Hello,
I have observed that in native unit test framework(c++), there is an option to group test cases using attributes which are reflected as traits in the Test Explorer window in MS VS2012.
Following is a an example of the same:
BEGIN_TEST_METHOD_ATTRIBUTE(TestMethod3)
TEST_OWNER(L"SuperMan")
TEST_PRIORITY(2)
TEST_METHOD_ATTRIBUTE(L"Category",L"Slow")
END_TEST_METHOD_ATTRIBUTE()
TEST_METHOD(TestMethod3)
{
Assert::AreEqual(2,6);
}
How can this be achieved via Boost Unit Test Library? Are there macros to achieve the same?
Mit freundlichen Grüßen / Best Regards,
Hemanth Choudary MV
RBEI/ETA1
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk