| [ CCUnit project page ] | [ CCUnit home page ] |
Typedefs | |
| typedef struct CCUnitTestRunner | CCUnitTestRunner |
| A command line based tool to run tests. | |
Functions | |
| struct CCUnitTestResult * | ccunit_runTestFixture (CCUnitTestFixture *f) |
| 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_runTestFixture | ( | CCUnitTestFixture * | f | ) | [read] |
run test cases and collect its results.
| f | test fixture. |
References ccunit_newTestResult(), CCUnitTest::run, and CCUnitTestFixture::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 Mon Aug 16 2010 21:52:39 for CCUnit by 1.7.1
|