MultiTech / MTS-Test

Dependents:   mtsas mtsas mtsas mtsas ... more

Revision:
1:42d2b6980cdd
Parent:
0:e002468be03b
Child:
11:0930606c0186
--- a/TestRunner.h	Mon May 19 14:13:02 2014 +0000
+++ b/TestRunner.h	Mon May 19 11:02:48 2014 -0500
@@ -1,4 +1,43 @@
 #ifndef TESTRUNNER_H
 #define TESTRUNNER_H
 
-#endif
\ No newline at end of file
+#include <vector>
+
+#include "TestCollection.h"
+#include "Test.h"
+
+namespace mts
+{
+
+/**
+*
+*/
+class TestRunner
+{
+public:
+    /**
+    *
+    */
+    static void addCollection(TestCollection* collection);
+    
+    /**
+    *
+    */
+    static void clearCollections();
+
+    /**
+    *
+    */
+    static void runTests(bool printPassedTests = false, bool printFailedTests = true, bool printPassedCollections = true, bool printFailedCollections = true);
+
+private:
+    static std::vector<TestCollection*> collections;
+    static int totalCollections;
+    static int collectionsFailed;
+    static int totalTests;
+    static int totalFailed;
+};
+
+}
+
+#endif