CppUnit - The Unit Testing Library

CppUnit project page | FAQ

XmlOutputterHook.h
Go to the documentation of this file.
1#ifndef CPPUNIT_XMLOUTPUTTERHOOK_H
2#define CPPUNIT_XMLOUTPUTTERHOOK_H
3
4#include <cppunit/Portability.h>
5
6
7 CPPUNIT_NS_BEGIN
8
9
10class Test;
11class TestFailure;
12class XmlDocument;
13class XmlElement;
14
15
16
117 class CPPUNIT_API XmlOutputterHook
118{
119public:
123 virtual void beginDocument( XmlDocument *document );
124
128 virtual void endDocument( XmlDocument *document );
129
136 virtual void failTestAdded( XmlDocument *document,
137 XmlElement *testElement,
138 Test *test,
139 TestFailure *failure );
140
146 virtual void successfulTestAdded( XmlDocument *document,
147 XmlElement *testElement,
148 Test *test );
149
154 virtual void statisticsAdded( XmlDocument *document,
155 XmlElement *statisticsElement );
156
157 virtual ~XmlOutputterHook() {}
158};
159
160
161 CPPUNIT_NS_END
162
163#endif // CPPUNIT_XMLOUTPUTTERHOOK_H
CPPUNIT_API
#define CPPUNIT_API
Definition CppUnitApi.h:27
Portability.h
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition Portability.h:106
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
TestFailure
Record of a failed Test execution.
Definition TestFailure.h:25
Test
Base class for all test objects.
Definition Test.h:26
XmlDocument
A XML Document.
Definition XmlDocument.h:28
XmlElement
A XML Element.
Definition XmlElement.h:34
XmlOutputterHook
Hook to customize Xml output.
Definition XmlOutputterHook.h:118
XmlOutputterHook::beginDocument
virtual void beginDocument(XmlDocument *document)
Definition XmlOutputterHook.cpp:8
XmlOutputterHook::statisticsAdded
virtual void statisticsAdded(XmlDocument *document, XmlElement *statisticsElement)
Definition XmlOutputterHook.cpp:37
XmlOutputterHook::~XmlOutputterHook
virtual ~XmlOutputterHook()
Definition XmlOutputterHook.h:157
XmlOutputterHook::successfulTestAdded
virtual void successfulTestAdded(XmlDocument *document, XmlElement *testElement, Test *test)
Definition XmlOutputterHook.cpp:29
XmlOutputterHook::failTestAdded
virtual void failTestAdded(XmlDocument *document, XmlElement *testElement, Test *test, TestFailure *failure)
Definition XmlOutputterHook.cpp:20
XmlOutputterHook::endDocument
virtual void endDocument(XmlDocument *document)
Definition XmlOutputterHook.cpp:14

| Send comments to: CppUnit Developers