TestFramework Unit
Classes Interfaces Types Routines Const
The testing framework.

Description
The TestFramework unit contains all the core definitions in the library, such as:

The TTestCase class should be ther first stop for all new users.

Classes
EBreakingTestFailure Failed tests throw this exception when the framework is set to cause the Delphi IDE debugger to break on test failures.
EStopTestsFailure Tests can throw this exception to stop any further testing
ETestError The framework will throw this type of exception when it encounters an error in a test case
ETestFailure Failed tests throw this exception.
TAbstractTest Provides the basic functionality tha all implementors of ITest must provide.
TMethodEnumerator Enumerates the published methods of a class.
TTestCase A test case defines the fixture to run multiple tests.
TTestFailure A TTestFailure collects a failed test together with information about the exception which caused the test to fail.
TTestResult A TTestResult collects the results of executing a test case.
TTestSuite A TTestSuite is a Composite of Tests, implementing the ITestSuite interface.

Interfaces
ITest ITest represents a test that can be run.
ITestListener A Listener for test progress.
ITestSuite An ITestSuite is a Composite of Tests.

Types
TTestCaseClass Used to pass a class reference to a descendant of TTestCase to TTestSuite.Create.
TTestMethod A method on a TTestCase descendent which implements a unit test.

Routines
CallerAddr Returns the address that the calling procedure will return to.
MakeTestSuite Create a named test suite out a series of tests
MakeTestSuites Create a test suite hierarchy out of a series of TTestCase descendants
RegisteredTests Return a TestSuite containing all registered tests.
RegisterTest Register a test.
RegisterTests Register a series of tests under the given path.
RegisterTestSuites Register a series of test suites consisting of the published methods of the TTestCase descendants passed in the classes array.
RunRegisteredTests Run registered tests using default features and notifying the given set of listeners of testing events.
RunTest Run a test using default features and notifying the given set of listeners of testing events.
SetBreakOnFailures Allow the IDE to break on failure exceptions.
TestSuiteOf Create a test suite out of the published methods in a TTestCase descendant

Global Constants
rcs_id This is the version of the testframework which this documentation describes.

Author
The DUnit Group.


HTML generated by Time2HELP
http://www.time2help.com