#include <testregistry.h>
Public Member Functions | |
| TestRegistry () | |
| ~TestRegistry () | |
Static Public Member Functions | |
| void | addTest (Test *test) |
| Add a test in the registry. | |
| const TestResult * | run () |
| Run all tests in the registry (default test runner) and return the test results. | |
| const TestResult * | run (TestRunner *runner) |
| Pass all tests in the registry to the TestRunner runner and return the results of all tests ran. | |
| const TestResult * | runAndPrint () |
| Run all tests in the registry (default test runner) and return the test results. | |
| const TestResult * | runAndPrint (TestRunner *runner) |
| Pass all tests in the registry to the TestRunner runner and return the results of all tests ran. | |
| const TestResult * | runAndPrint (TestPrinter *printer) |
| Run all tests in the registry (default test runner) and return the test results. | |
| const TestResult * | runAndPrint (TestPrinter *printer, TestRunner *runner) |
| Pass all tests in the registry to the TestRunner runner and return the results of all tests ran. | |
Private Member Functions | |
| void | add (Test *test) |
| void | addTestCase (TestCase *testCase) |
| const TestResult * | runTests (TestRunner *runner) |
Static Private Member Functions | |
| TestRegistry & | instance () |
Private Attributes | |
| int | testCaseCount_ |
| TestCase * | currentTC_ |
| TestPrinter * | defaultPrinter_ |
| TestRunner * | defaultRunner_ |
| TestResult | testResult_ |
Static Private Attributes | |
| int | nextName |
It can then be used to run tests and print results. All methods that should be used by the user are static.
|
|
|
|
|
|
|
|
|
|
|
Add a test in the registry. If the previous TestCase was not the same as the one of the current test, a new TestCase is created.
|
|
|
|
|
|
|
|
|
Pass all tests in the registry to the TestRunner runner and return the results of all tests ran.
|
|
|
Run all tests in the registry (default test runner) and return the test results.
|
|
||||||||||||
|
Pass all tests in the registry to the TestRunner runner and return the results of all tests ran. Results will also be given to to the TestPrinter printer.
|
|
|
Run all tests in the registry (default test runner) and return the test results. Results will also be given to to the TestPrinter printer.
|
|
|
Pass all tests in the registry to the TestRunner runner and return the results of all tests ran. This will also print the results using the default test printer (normal level of details and to the standard output).
|
|
|
Run all tests in the registry (default test runner) and return the test results. This will also print the results using the default test printer (normal level of details and to the standard output).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8