Line | |
---|
1 | #ifndef HTML_TEST_REPORTER |
---|
2 | #define HTML_TEST_REPORTER |
---|
3 | |
---|
4 | #include "TestReporter.h" |
---|
5 | #include <vector> |
---|
6 | |
---|
7 | namespace CppTestHarness |
---|
8 | { |
---|
9 | |
---|
10 | class HTMLTestReporter : public TestReporter |
---|
11 | { |
---|
12 | public: |
---|
13 | virtual void ReportFailure(char const* file, int line, std::string failure); |
---|
14 | virtual void ReportSingleResult(const std::string& testName, bool failed); |
---|
15 | virtual void ReportSummary(int testCount, int failureCount); |
---|
16 | |
---|
17 | private: |
---|
18 | typedef std::vector<std::string> MessageList; |
---|
19 | |
---|
20 | struct ResultRecord |
---|
21 | { |
---|
22 | std::string testName; |
---|
23 | bool failed; |
---|
24 | MessageList failureMessages; |
---|
25 | }; |
---|
26 | |
---|
27 | MessageList m_failureMessages; |
---|
28 | |
---|
29 | typedef std::vector<ResultRecord> ResultList; |
---|
30 | ResultList m_results; |
---|
31 | }; |
---|
32 | |
---|
33 | } |
---|
34 | |
---|
35 | #endif //HTML_TEST_REPORTER |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.