arabica/test/CppUnit/TestRunner.hpp

27 lines
500 B
C++
Raw Normal View History

2005-10-12 01:46:19 +02:00
#ifndef ARABICA_TEST_RUNNER_HPP
#define ARABICA_TEST_RUNNER_HPP
#include "../CppUnit/framework/Test.h"
#include <vector>
class TestRunner
{
protected:
bool m_wait;
std::vector<std::pair<std::string,Test *> > m_mappings;
public:
TestRunner() : m_wait(false) {}
~TestRunner();
2005-10-31 13:07:30 +01:00
void run(int ac, const char **av);
2005-10-12 01:46:19 +02:00
void addTest(std::string name, Test *test)
{ m_mappings.push_back(std::make_pair(name, test)); }
protected:
void run(Test *test);
void printBanner();
}; // TestRunner;
#endif