Jon Test
C++ Unit Test Tool. Not for production -- sample code only
Loading...
Searching...
No Matches
include
JonTest
TestSuite.h
Go to the documentation of this file.
1
#ifndef JON_TEST_TEST_SUITE_H
2
#define JON_TEST_TEST_SUITE_H
3
4
#include "
JonTest/TestCase.h
"
5
#include "
JonTest/TestSuiteTyped.h
"
6
63
#define TEST_SUITE(testSuiteName) \
64
namespace { \
65
class testSuiteName \
66
: public JonTest::TestSuiteTyped<testSuiteName> \
67
{ \
68
private: \
69
typedef testSuiteName SuiteName; \
70
public: \
71
testSuiteName() : TestSuiteTyped(#testSuiteName) {}
72
77
#define TEST_SUITE_END() \
78
} test; \
79
}
80
91
#define TEST_CASE(testCaseName) \
92
JonTest::TestCase<SuiteName> testCaseName ##_holder = JonTest::TestCase<SuiteName>::createAndAdd(*this, #testCaseName, &SuiteName::testCaseName); \
93
void testCaseName()
94
95
#endif
TestCase.h
TestSuiteTyped.h
Generated by
1.9.8