| [ CCUnit project page ] | [ CCUnit home page ] |
Runs a single test and collects its results. More...
|
Data Structures | |
| struct | CCUnitTestRunner |
| Runs a single test and collects its results. More... | |
Functions | |
| static void | startTest (CCUnitTestListener *listener, CCUnitTestCase *test) |
| receive startTest notification. | |
| static void | endTest (CCUnitTestListener *listener, CCUnitTestCase *test) |
| receive endTest notification. | |
| static void | addFailure (CCUnitTestListener *listener, CCUnitTestFailure *failure) |
| receive addFailure notification. | |
| static void | printHeader (CCUnitTestRunner *runner, CCUnitTestResult *result) |
| Prints the header of the report. | |
| static void | printFailures (CCUnitTestRunner *runner, CCUnitTestResult *result) |
| Prints failures. | |
| static void | print (CCUnitTestRunner *runner, CCUnitTestResult *result) |
| Prints failures. | |
| static int | doRun (CCUnitTestRunner *runner, CCUnitTestSuite *suite) |
| Runs a single test and collects its results. | |
| CCUnitTestResult * | ccunit_getResult (CCUnitTestRunner *runner) |
| Get test result. | |
Runs a single test and collects its results.
This method can be used to start a test run from your program.
| static void addFailure | ( | CCUnitTestListener * | listener, | |
| CCUnitTestFailure * | failure | |||
| ) | [static] |
receive addFailure notification.
| listener | notification listener. | |
| failure | failure information. |
References ofp.
| CCUnitTestResult * ccunit_getResult | ( | CCUnitTestRunner * | runner | ) | [inline] |
Get test result.
| runner | test runner. |
| static int doRun | ( | CCUnitTestRunner * | runner, | |
| CCUnitTestSuite * | suite | |||
| ) | [static] |
Runs a single test and collects its results.
| runner | test runner | |
| suite | test suite |
References ccunit_addResultListener(), ccunit_newTestResult(), ccunit_runTestSuite(), ccunit_wasSuccessful(), listener, ofp, print(), and result.

| static void endTest | ( | CCUnitTestListener * | listener, | |
| CCUnitTestCase * | test | |||
| ) | [static] |
receive endTest notification.
| listener | notification listener. | |
| test | ended test case |
| static void print | ( | CCUnitTestRunner * | runner, | |
| CCUnitTestResult * | result | |||
| ) | [inline, static] |
Prints failures.
| runner | test runner | |
| result | test result |
References printFailures(), and printHeader().
Referenced by doRun().


| static void printFailures | ( | CCUnitTestRunner * | runner, | |
| CCUnitTestResult * | result | |||
| ) | [static] |
Prints failures.
| runner | test runner. | |
| result | test result. |
References CCUnitTestFailure::actual, ccunit_deleteListIterator(), ccunit_failureCount(), ccunit_failures(), ccunit_nextListIterator(), CCUnitTestFailure::condstr, CCUnitTestCase::desc, CCUnitTestFailure::expect, CCUnitTestFailure::file, CCUnitTestFailure::line, ofp, and CCUnitTestFailure::testCase.
Referenced by print().


| static void printHeader | ( | CCUnitTestRunner * | runner, | |
| CCUnitTestResult * | result | |||
| ) | [static] |
Prints the header of the report.
| runner | test runner. | |
| result | test result. |
References ccunit_failureCount(), ccunit_runCount(), ccunit_wasSuccessful(), and ofp.
Referenced by print().


| static void startTest | ( | CCUnitTestListener * | listener, | |
| CCUnitTestCase * | test | |||
| ) | [static] |
receive startTest notification.
| listener | notification listener. | |
| test | starting test case |
References ofp.
|
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Mon Aug 16 2010 21:52:38 for CCUnit by 1.7.1
|