CppTest  Version 2.0.0
Classes | Namespaces | Macros
cpptest-suite.h File Reference
#include <list>
#include <memory>
#include <string>
#include "cpptest-time.h"
#include "cpptest-source.h"

Go to the source code of this file.

Classes

class  Test::Suite
 

Namespaces

 Test
 

Macros

#define TEST_ADD(func)
 

Macro Definition Documentation

◆ TEST_ADD

#define TEST_ADD (   func)

Adds a test function to the enclosing suite. Note that test functions should be added in the suites constructor.

Parameters
funcFunction to add, must be of type Suite::Func.
Example:
MySuite::MySuite()
{
TEST_ADD(&MySuite::test_1)
TEST_ADD(&MySuite::test_2)
...
}