Test library for MTS Socket Modem Arduino Shield devices for Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas ... more
TestRunner.h@13:cc03c4e85c69, 2015-06-25 (annotated)
- Committer:
- Mike Fiore
- Date:
- Thu Jun 25 08:45:51 2015 -0500
- Revision:
- 13:cc03c4e85c69
- Parent:
- 11:0930606c0186
fix whitespace
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mfiore | 0:e002468be03b | 1 | #ifndef TESTRUNNER_H |
mfiore | 0:e002468be03b | 2 | #define TESTRUNNER_H |
mfiore | 0:e002468be03b | 3 | |
Mike Fiore |
1:42d2b6980cdd | 4 | #include <vector> |
Mike Fiore |
1:42d2b6980cdd | 5 | |
Mike Fiore |
1:42d2b6980cdd | 6 | #include "TestCollection.h" |
Mike Fiore |
1:42d2b6980cdd | 7 | #include "Test.h" |
Mike Fiore |
1:42d2b6980cdd | 8 | |
Mike Fiore |
1:42d2b6980cdd | 9 | namespace mts |
Mike Fiore |
1:42d2b6980cdd | 10 | { |
Mike Fiore |
1:42d2b6980cdd | 11 | class TestRunner |
Mike Fiore |
1:42d2b6980cdd | 12 | { |
Mike Fiore |
1:42d2b6980cdd | 13 | public: |
Mike Fiore |
1:42d2b6980cdd | 14 | static void addCollection(TestCollection* collection); |
Mike Fiore |
1:42d2b6980cdd | 15 | static void clearCollections(); |
Mike Fiore |
1:42d2b6980cdd | 16 | static void runTests(bool printPassedTests = false, bool printFailedTests = true, bool printPassedCollections = true, bool printFailedCollections = true); |
Mike Fiore |
1:42d2b6980cdd | 17 | |
Mike Fiore |
1:42d2b6980cdd | 18 | private: |
Mike Fiore |
1:42d2b6980cdd | 19 | static std::vector<TestCollection*> collections; |
Mike Fiore |
1:42d2b6980cdd | 20 | static int totalCollections; |
Mike Fiore |
1:42d2b6980cdd | 21 | static int collectionsFailed; |
Mike Fiore |
1:42d2b6980cdd | 22 | static int totalTests; |
Mike Fiore |
1:42d2b6980cdd | 23 | static int totalFailed; |
Mike Fiore |
1:42d2b6980cdd | 24 | }; |
Mike Fiore |
1:42d2b6980cdd | 25 | |
Mike Fiore |
1:42d2b6980cdd | 26 | } |
Mike Fiore |
1:42d2b6980cdd | 27 | |
Mike Fiore |
1:42d2b6980cdd | 28 | #endif |