FreeNOS
TAPReporter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Niek Linnenbank
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __LIBTEST_TAPREPORTER_H
19 #define __LIBTEST_TAPREPORTER_H
20 
21 #include "TestReporter.h"
22 
36 class TAPReporter : public TestReporter
37 {
38  public:
39 
43  TAPReporter(int argc, char **argv);
44 
48  virtual void reportBegin(List<TestInstance *> & tests);
49 
53  virtual void reportBefore(TestInstance & test);
54 
58  virtual void reportAfter(TestInstance & test, TestResult & result);
59 
63  virtual void reportFinish(List<TestInstance *> & tests);
64 
65  private:
66 
69 };
70 
76 #endif /* __LIBTEST_TAPREPORTER_H */
TAPReporter::TAPReporter
TAPReporter(int argc, char **argv)
Constructor.
Definition: TAPReporter.cpp:23
TAPReporter::m_count
uint m_count
Test counter.
Definition: TAPReporter.h:68
TAPReporter::reportBegin
virtual void reportBegin(List< TestInstance * > &tests)
Report start of testing.
Definition: TAPReporter.cpp:29
TAPReporter::reportAfter
virtual void reportAfter(TestInstance &test, TestResult &result)
Report finish of a test.
Definition: TAPReporter.cpp:43
uint
unsigned int uint
Unsigned integer number.
Definition: Types.h:44
TAPReporter::reportBefore
virtual void reportBefore(TestInstance &test)
Report start of a test.
Definition: TAPReporter.cpp:39
TAPReporter
Output TestResults in TAP format to stdout.
Definition: TAPReporter.h:36
TestResult
Represents a Test result created by a TestInstance.
Definition: TestResult.h:47
TestReporter.h
TAPReporter::reportFinish
virtual void reportFinish(List< TestInstance * > &tests)
Report completion of all tests.
Definition: TAPReporter.cpp:70
TestReporter
Responsible for outputting test results.
Definition: TestReporter.h:35
List< TestInstance * >
TestInstance
Represents a test instance.
Definition: TestInstance.h:35