cxxtools::unit::TestProtocol Class Reference

Protocol for test suitesThis is the base class for protocols that can be used to run a test suite. More...

#include <cxxtools/unit/testprotocol.h>

Public Member Functions

virtual ~TestProtocol ()
 Destructor.
virtual void run (TestSuite &test)
 Executes the protocol.

Detailed Description

Protocol for test suites

This is the base class for protocols that can be used to run a test suite.

The default implementation will simply run each registered test of the test suite without passing it any data. Implementors need to override the method TestProtocol::run.

Constructor & Destructor Documentation

virtual cxxtools::unit::TestProtocol::~TestProtocol ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void cxxtools::unit::TestProtocol::run ( TestSuite test)
virtual

Executes the protocol.

This method can be overriden to specify a custom protocol for a test suite. The default implementation will simply call each registered method of the test suite. Implementors will most likely call TestSuite::runTest to resolve a test method by name and pass it required arguments.

Parameters
testThe test suite to apply the protocol

The documentation for this class was generated from the following file: