/[escript]/trunk/tools/CppUnitTest/src/TestRunner.h
ViewVC logotype

Contents of /trunk/tools/CppUnitTest/src/TestRunner.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (15 years ago) by jgs
Original Path: trunk/esys2/tools/CppUnitTest/inc/CppUnitTest/TestRunner.h
File MIME type: text/plain
File size: 853 byte(s)
Initial revision

1 #ifndef CPPUNIT_TEXTRUNNER_H
2 #define CPPUNIT_TEXTRUNNER_H
3
4 #include <iostream>
5 #include <vector>
6
7 #include "CppUnitTest/Test.h"
8
9 #include "CppUnitTest/CppUnitTestNamespace.h"
10 BEGIN_NAMESPACE_CPPUNITTEST
11
12 typedef std::pair<std::string, Test *> mapping;
13 typedef std::vector<std::pair<std::string, Test *> > mappings;
14
15 class TestRunner
16 {
17 protected:
18 bool m_wait;
19 std::vector<std::pair<std::string,Test *> > m_mappings;
20
21 public:
22 TestRunner () : m_wait (false) {}
23 ~TestRunner ();
24
25 void run (int ac, char **av);
26 void addTest (std::string name, Test *test)
27 { m_mappings.push_back (mapping (name, test)); }
28
29 protected:
30 void run (Test *test);
31 void printBanner ();
32
33 };
34
35 END_NAMESPACE_CPPUNITTEST
36
37 #endif
38
39
40
41

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26