test_main.h File Reference
#include <cppunit/TestCase.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/TextTestRunner.h>
Include dependency graph for test_main.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros |
|
#define | WISP_TEST_MAIN(init_hook) |
Macro Definition Documentation
#define WISP_TEST_MAIN | ( | init_hook | ) |
Value:
int main(int argc, char **argv) { \
TextTestRunner runner; \
TestFactoryRegistry & registry = TestFactoryRegistry::getRegistry();\
\
init_hook; \
\
runner.addTest(registry.makeTest());\
\
return (runner.run() ? 0 : -1);\
}
Definition at line 29 of file test_main.h.
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.
Copyright © 2017 Savarese Software Research Corporation. All rights reserved