[ CCUnit project page ] | [ CCUnit home page ] |
Typedefs | |
typedef struct CCUnitTestRunner | CCUnitTestRunner |
A command line based tool to run tests. | |
Functions | |
struct CCUnitTestResult * | ccunit_runTestCase (CCUnitTestCase *testCase) |
run test cases and collect its results. | |
CCUnitTestRunner * | ccunit_newTestRunner (FILE *output) |
constructor. | |
void | ccunit_deleteTestRunner (CCUnitTestRunner *runner) |
destructor. | |
int | ccunit_runTestRunner (CCUnitTestRunner *runner, CCUnitTestSuite *suite) |
Runs test suite. | |
CCUnitTestResult * | ccunit_runTestSuite (CCUnitTestSuite *suite, CCUnitTestResult *result) |
run test suite and collect its results. |
typedef struct CCUnitTestRunner CCUnitTestRunner |
A command line based tool to run tests.
Runs a single test and collects its results. This method can be used to start a test run from your program.
int main (int ac, char** av) { CCUnitTestRunner* runner = ccunit_newTestRunner (NULL); CCUnitTestSuite* suite = CREATE_TESTSUITE (); return runner->run (runner, suite); }
void ccunit_deleteTestRunner | ( | CCUnitTestRunner * | runner | ) |
destructor.
runner | TestRunner object to destruct. |
CCUnitTestRunner * ccunit_newTestRunner | ( | FILE * | output | ) |
constructor.
output | prints test result into this stream. |
struct CCUnitTestResult* ccunit_runTestCase | ( | CCUnitTestCase * | testCase | ) | [read] |
run test cases and collect its results.
testCase | test case. |
References ccunit_newTestResult(), CCUnitTest::run, and CCUnitTestCase::test.
int ccunit_runTestRunner | ( | CCUnitTestRunner * | runner, | |
CCUnitTestSuite * | suite | |||
) | [inline] |
Runs test suite.
runner | test runner | |
suite | test suite |
CCUnitTestResult * ccunit_runTestSuite | ( | CCUnitTestSuite * | suite, | |
CCUnitTestResult * | result | |||
) | [inline] |
run test suite and collect its results.
suite | test suite. | |
result | test result. if NULL, create a new result object and return it. |
Referenced by doRun().
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:33 for CCUnit by ![]() |