Revision 418, 0.9 kB
(checked in by vbarta, 15 years ago)
|
#27: added UnitTest?++ to bdm sources, changed test_user_data to use it
|
Line | |
---|
1 | #ifndef UNITTEST_XMLTESTREPORTER_H |
---|
2 | #define UNITTEST_XMLTESTREPORTER_H |
---|
3 | |
---|
4 | #include "DeferredTestReporter.h" |
---|
5 | |
---|
6 | #include <iosfwd> |
---|
7 | |
---|
8 | namespace UnitTest |
---|
9 | { |
---|
10 | |
---|
11 | class XmlTestReporter : public DeferredTestReporter |
---|
12 | { |
---|
13 | public: |
---|
14 | explicit XmlTestReporter(std::ostream& ostream); |
---|
15 | |
---|
16 | virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed); |
---|
17 | |
---|
18 | private: |
---|
19 | XmlTestReporter(XmlTestReporter const&); |
---|
20 | XmlTestReporter& operator=(XmlTestReporter const&); |
---|
21 | |
---|
22 | void AddXmlElement(std::ostream& os, char const* encoding); |
---|
23 | void BeginResults(std::ostream& os, int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed); |
---|
24 | void EndResults(std::ostream& os); |
---|
25 | void BeginTest(std::ostream& os, DeferredTestResult const& result); |
---|
26 | void AddFailure(std::ostream& os, DeferredTestResult const& result); |
---|
27 | void EndTest(std::ostream& os, DeferredTestResult const& result); |
---|
28 | |
---|
29 | std::ostream& m_ostream; |
---|
30 | }; |
---|
31 | |
---|
32 | } |
---|
33 | |
---|
34 | #endif |
---|