arabica/tests/CppUnit/TestRunner.hpp

24 lines
477 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:
2006-10-12 00:51:04 +02:00
bool verbose_;
2005-10-12 01:46:19 +02:00
bool m_wait;
std::vector<std::pair<std::string,Test *> > m_mappings;
public:
TestRunner() : m_wait(false), verbose_(false) {}
2005-10-12 01:46:19 +02:00
~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)); }
}; // TestRunner;
#endif