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