Pt::Unit Namespace Reference

Detailed Description

The Pt::Unit module provides a complete framework for effective unit testing. Simple tests are implemented by deriving from TestCase, multi-method suites by deriving from TestSuite. Setup and teardown of resources is provided by the TestFixture interface. Test conditions are verified through the Assertion class and the PT_UNIT_ASSERT macros. Execution order and data-driven repetition are controlled by a TestProtocol. Tests are auto-registered with RegisterTest and run by the Application class, which reports results through Reporter. A ready-made main() function is available by including TestMain.h.

Classes

class  Application
 Run registered tests. More...
 
class  Assertion
 Test Assertion exception More...
 
struct  RegisterTest
 Registers tests to an application. More...
 
class  Reporter
 Test event reporter More...
 
class  Test
 Test base class More...
 
class  TestCase
 Single test with setup and teardown. More...
 
class  TestContext
 Context in which test are run. More...
 
class  TestFixture
 Fixture interface for tests. More...
 
class  TestProtocol
 Protocol for test suites. More...
 
class  TestSuite
 Protocol and data driven testing. More...
 
class  TextProtocol
 Implements a simple text protocol. More...