Test::CompilerOutput Class Reference
Compiler-like output handler.
More...
#include <cpptest-compileroutput.h>
Inheritance diagram for Test::CompilerOutput:
List of all members.Public Types
Public Member Functions
Detailed Description
Compiler-like output handler.
Test suite output handler that only outputs failures in compiler warning/error format. This way, you can use your IDE to browse between failures.
The output format is configurable to be able to emulate different compiler outputs. The following modifiers exist:
- file Outputs the file containing the test function.
- line Line number for the the test function.
- text Expression (or message) that caused the assertment. Note that each modifier can only be specified once.
Member Enumeration Documentation
|
Pre-defined compiler output formats. - Enumeration values:
-
|
Constructor & Destructor Documentation
Test::CompilerOutput::CompilerOutput |
( |
Format |
format = Generic , |
|
|
std::ostream & |
stream = std::cout |
|
) |
[explicit] |
|
|
Constructs a compiler output handler.
- Parameters:
-
| format | Pre-defined compiler output format. |
| stream | Stream to output to. |
|
Test::CompilerOutput::CompilerOutput |
( |
const std::string & |
format, |
|
|
std::ostream & |
stream = std::cout |
|
) |
[explicit] |
|
|
Constructs a compiler output handler.
- Parameters:
-
| format | Output format to use. |
| stream | Stream to output to. |
- Exceptions:
-
| InvalidFormat | Invalid format specified. |
|
Member Function Documentation
void Test::CompilerOutput::assertment |
( |
const Source & |
s |
) |
[virtual] |
|
|
Called when an assertment is issued.
- Parameters:
-
| s | Assert point information. |
Reimplemented from Test::Output. |
The documentation for this class was generated from the following files:
Supported by: