class unitpp::tester

The standard text based tester.

Inheritance:


Public Methods

[more] tester(std::ostream& os, bool verbose = false)
Create a text tester.
[more]res_cnt res_tests()
Get the score for tests
[more]res_cnt res_suites()
Get the score for suites
[more]virtual void summary()
Write the summary
[more]virtual void visit(test&)
Part of the visitor pattern
[more]virtual void visit(suite&)
Part of the visitor pattern
[more]virtual void visit(suite& t, int)
Part of the visitor pattern; visit to suite after children


Inherited from visitor:


Documentation

The standard text based tester. It implements the visitor pattern for the test and suite classes, and executes each test case in a depth first traversal, toting the score of test cases.

The class might be used for test executers aimed at other environments, e.g. a GUI based version.

Please note that this class is automagically instantiated by the main method supplied in the library. This means that you might very well do all your testing without directly laying hans on this fellow.

o tester(std::ostream& os, bool verbose = false)
Create a text tester.
Parameters:
os - the stream to write results to.
verbose - whether to report on succesful tests

ores_cnt res_tests()
Get the score for tests

ores_cnt res_suites()
Get the score for suites

ovirtual void summary()
Write the summary

ovirtual void visit(test&)
Part of the visitor pattern

ovirtual void visit(suite&)
Part of the visitor pattern

ovirtual void visit(suite& t, int)
Part of the visitor pattern; visit to suite after children


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.