arabica/tests/CppUnit/TestRunner.hpp
jez 07ef52f308 Added -table option to test executables. It outputs the results as a tab
seperated table, which can be pasted into spreadsheet/google docs/etc.
2008-08-09 23:19:21 +01:00

23 lines
478 B
C++

#ifndef ARABICA_TEST_RUNNER_HPP
#define ARABICA_TEST_RUNNER_HPP
#include "../CppUnit/framework/Test.h"
#include <vector>
class TestRunner
{
protected:
bool verbose_;
bool m_wait;
std::vector<std::pair<std::string,Test *> > m_mappings;
public:
TestRunner() : m_wait(false), verbose_(false) {}
~TestRunner();
bool run(int ac, const char **av);
void addTest(std::string name, Test *test)
{ m_mappings.push_back(std::make_pair(name, test)); }
}; // TestRunner;
#endif