MultiTech / MTS-Test

Dependents:   mtsas mtsas mtsas mtsas ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TestRunner.h Source File

TestRunner.h

00001 #ifndef TESTRUNNER_H
00002 #define TESTRUNNER_H
00003 
00004 #include <vector>
00005 
00006 #include "TestCollection.h"
00007 #include "Test.h"
00008 
00009 namespace mts
00010 {
00011 class TestRunner
00012 {
00013 public:
00014     static void addCollection(TestCollection* collection);
00015     static void clearCollections();
00016     static void runTests(bool printPassedTests = false, bool printFailedTests = true, bool printPassedCollections = true, bool printFailedCollections = true);
00017 
00018 private:
00019     static std::vector<TestCollection*> collections;
00020     static int totalCollections;
00021     static int collectionsFailed;
00022     static int totalTests;
00023     static int totalFailed;
00024 };
00025 
00026 }
00027 
00028 #endif