CppTest
Version 2.0.0
|
#include <cpptest-compileroutput.h>
Classes | |
class | InvalidFormat |
Public Types | |
enum | Format { Generic, BCC, GCC, MSVC } |
Public Member Functions | |
CompilerOutput (Format format=Generic, std::ostream &stream=std::cout) | |
CompilerOutput (const std::string &format, std::ostream &stream=std::cout) | |
virtual void | assertment (const Source &s) |
Public Member Functions inherited from Test::Output | |
virtual | ~Output () |
virtual void | initialize (int tests) |
virtual void | finished (int tests, const Time &time) |
virtual void | suite_start (int tests, const std::string &name) |
virtual void | suite_end (int tests, const std::string &name, const Time &time) |
virtual void | test_start (const std::string &name) |
virtual void | test_end (const std::string &name, bool ok, const Time &time) |
Additional Inherited Members | |
Protected Member Functions inherited from Test::Output | |
Output () | |
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:
Pre-defined compiler output formats.
Enumerator | |
---|---|
Generic | Generic compiler format, which equals: |
BCC | Borland C++ Compiler (BCC) format, which equals: |
GCC | GNU Compiler Collection (GCC) format, which equals: |
MSVC | Microsoft Visual C++ (MSVC) format, which equals: |
|
explicit |
Constructs a compiler output handler.
format | Pre-defined compiler output format. |
stream | Stream to output to. |
|
explicit |
Constructs a compiler output handler.
format | Output format to use. |
stream | Stream to output to. |
InvalidFormat | Invalid format specified. |
|
virtual |
Called when an assertment is issued.
s | Assert point information. |
Reimplemented from Test::Output.
References Test::Source::file(), Test::Source::line(), and Test::Source::message().