Public Types |
typedef CppUnitMap< Test *,
TestFailure *, std::less<
Test *> > | FailedTests |
Public Methods |
| XmlOutputter (TestResultCollector *result, std::ostream &stream, std::string encoding=std::string("ISO-8859-1")) |
| Constructs a XmlOutputter object. More...
|
virtual | ~XmlOutputter () |
| Destructor. More...
|
virtual void | addHook (XmlOutputterHook *hook) |
| Adds the specified hook to the outputter. More...
|
virtual void | removeHook (XmlOutputterHook *hook) |
| Removes the specified hook from the outputter. More...
|
virtual void | write () |
| Writes the specified result as an XML document to the stream. More...
|
virtual void | setStyleSheet (const std::string &styleSheet) |
| Sets the XSL style sheet used. More...
|
virtual void | setRootNode () |
| Sets the root element and adds its children. More...
|
virtual void | addFailedTests (FailedTests &failedTests, XmlElement *rootNode) |
virtual void | addSuccessfulTests (FailedTests &failedTests, XmlElement *rootNode) |
virtual void | addStatistics (XmlElement *rootNode) |
| Adds the statics element to the root node. More...
|
virtual void | addFailedTest (Test *test, TestFailure *failure, int testNumber, XmlElement *testsNode) |
| Adds a failed test to the failed tests node. Creates a new element containing datas about the failed test, and adds it to the failed tests element. Then, for all hooks, call failTestAdded(). More...
|
virtual void | addFailureLocation (TestFailure *failure, XmlElement *testElement) |
virtual void | addSuccessfulTest (Test *test, int testNumber, XmlElement *testsNode) |
| Adds a successful test to the successful tests node. Creates a new element containing datas about the successful test, and adds it to the successful tests element. Then, for all hooks, call successfulTestAdded(). More...
|
Protected Types |
typedef CppUnitDeque< XmlOutputterHook *> | Hooks |
Protected Methods |
virtual void | fillFailedTestsMap (FailedTests &failedTests) |
Protected Attributes |
TestResultCollector * | m_result |
std::ostream & | m_stream |
std::string | m_encoding |
std::string | m_styleSheet |
XmlDocument * | m_xml |
Hooks | m_hooks |
Private Methods |
| XmlOutputter (const XmlOutputter ©) |
| Prevents the use of the copy constructor. More...
|
void | operator= (const XmlOutputter ©) |
| Prevents the use of the copy operator. More...
|
Save the test result as a XML stream.