Name
CompilerOutputter
Description
The class
CompilerOutputter
(see Figure C-3) is a
subclass of Outputter
. It outputs test results in
the format that the Microsoft Visual C++ (VC++) IDE uses for compiler
errors, enabling the IDE to locate test assertions in the code.
CompilerOutputter
belongs to the namespace
CppUnit
. It is declared in
CompilerOutputter.h and implemented in
CompilerOutputter.cpp.
Declaration
class CompilerOutputter : public Outputter
Constructors/Destructors
-
CompilerOutputter(TestResultCollector *result, ostream& stream)
Creates a
CompilerOutputter
to get test results fromresult
and outputs them tostream
.-
virtual ~CompilerOutputter( )
A destructor.
Public Methods
-
static CompilerOutputter *defaultOutputter( TestResultCollector *result, ostream& stream)
A static method that returns a new
CompilerOutputter
.-
virtual void printDefaultMessage(Exception *thrownException)
virtual void printFailedTestName(TestFailure *failure)
virtual void printFailureDetail(TestFailure *failure)
virtual void printFailureLocation(SourceLine sourceLine)
virtual void printFailureMessage(TestFailure *failure)
virtual void printFailureReport( )
virtual void printFailuresList( )
virtual void printFailureType(TestFailure *failure)
virtual void printNotEqualMessage(Exception *thrownException)
virtual void printStatistics( )
virtual void printSucess( ...
Get Unit Test Frameworks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.