Introduction
Test suite is a collection of test methods. Each suite is identified by its class name. You can execute all test suites or only a selected one.
Design Concerns
Single Point Registration
It should be easy to define test suites and test methods and it should not require modifying several places to define, register or trigger a method. Same way, a test suite or test method should be disabled without a fuzz.
Easy to Use
Single header file with four macros to remember.
Clear Logging
A simple logging mechanism which is easy to replace or extend.
Example
TEST_SUITE(SampleSuite)
{
TEST(fooTest1)
{
ASSERT_THAT(true);
CHECK_THAT(true);
CHECK_THAT(true);
}
TEST(fooTest2)
{
CHECK_THAT(true);
}
};Above suite can be executed using:
TestManager::ExecuteSuite("SampleSuite");