CppTest home page CppTest project page

Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Test::CompilerOutput Class Reference

Compiler-like output handler. More...

#include <cpptest-compileroutput.h>

Inheritance diagram for Test::CompilerOutput:

Test::Output 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:


Member Enumeration Documentation

enum Test::CompilerOutput::Format
 

Pre-defined compiler output formats.

Enumeration values:
Generic  Generic compiler format, which equals: %file:%line: %text
BCC  Borland C++ Compiler (BCC) format, which equals: Error cpptest %file %line: %text.
GCC  GNU Compiler Collection (GCC) format, which equals: %file:%line: %text
MSVC  Microsoft Visual C++ (MSVC) format, which equals: %file(%line) : %text


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:

SourceForge Logo