CppTest home page CppTest project page

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
 Unit testing suite. More...

Namespaces

namespace  Test

Macros

#define TEST_ADD(func)

Detailed Description

Macro Definition Documentation

#define TEST_ADD (   func)
   Adds a test function to the enclosing suite. Note that test functions
   should be added in the suites constructor.

   \param func Function to add, must be of type Suite::Func.

   \par Example:
   @code 

MySuite::MySuite() { TEST_ADD(&MySuite::test_1) TEST_ADD(&MySuite::test_2) ... }


Supported by:

SourceForge Logo