-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestRunner.h
More file actions
42 lines (26 loc) · 767 Bytes
/
TestRunner.h
File metadata and controls
42 lines (26 loc) · 767 Bytes
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
37
38
39
40
41
42
#ifndef __TESTRUNNER_H__
#define __TESTRUNNER_H__
#include "TestCase.h"
class TestRunner
{
public:
TestRunner();
virtual ~TestRunner();
void run();
virtual void preTest(TestCase* test);
void runTest(TestCase* test);
virtual void postTest(TestCase* test);
virtual void reportPass(TestCase* test);
virtual void reportFail(TestCase* test);
virtual void reportFailure(TestCase* test);
short getPassedTest();
short getFailedTest();
short getFailures();
virtual void reportResults() = 0;
virtual TestSuite getTests() = 0;
protected:
short m_passedTests;
short m_failedTests;
short m_failures;
};
#endif