#include <defaulttestprinter.h>
Inheritance diagram for easyunit::DefaultTestPrinter:

Public Member Functions | |
| DefaultTestPrinter () | |
| Default constructor that sets the header level to normal and the output source to the standard output. | |
| virtual | ~DefaultTestPrinter () |
| Empty destructor. | |
| virtual void | print (const TestResult *testResult) |
| Prints a header depending of the header level and details about each test to the output_. | |
| void | setHeaderLevel (headerLevel level) |
| Set the header level of the printer. | |
| void | showSuccessDetail (bool show) |
| Set whether or not the printer should display the details of test that succeeded. | |
| void | setOutput (FILE *output) |
| Set the output to which the printer will print results. | |
Protected Member Functions | |
| virtual void | printHeader (const TestResult *testResult) |
| virtual void | printTests (TestCase *testCase) |
| virtual void | printResults (Test *test) |
| virtual void | printCompleteHeader (const TestResult *testResult) |
| virtual void | printNormalHeader (const TestResult *testResult) |
Protected Attributes | |
| int | testsTotal_ |
| int | testFailuresTotal_ |
| int | failuresTotal_ |
| headerLevel | level_ |
| bool | showSuccessDetail_ |
| FILE * | output_ |
This testprinter writes plain text result to any supplied file. The default file is the standard output.
You may customize the outpur format by specifying the header level and if you wish the testprinter to print details about each success.
The default header level is normal and by default, the testprinter does not print details about each success.
|
|
Default constructor that sets the header level to normal and the output source to the standard output.
|
|
|
Empty destructor.
|
|
|
Prints a header depending of the header level and details about each test to the output_.
Implements easyunit::TestPrinter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the header level of the printer.
|
|
|
Set the output to which the printer will print results.
|
|
|
Set whether or not the printer should display the details of test that succeeded.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8