diff options
Diffstat (limited to 'include/cppunit/Test.h')
| -rw-r--r-- | include/cppunit/Test.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/cppunit/Test.h b/include/cppunit/Test.h new file mode 100644 index 0000000..421e403 --- /dev/null +++ b/include/cppunit/Test.h @@ -0,0 +1,32 @@ +#ifndef CPPUNIT_TEST_H +#define CPPUNIT_TEST_H + +#include <string> + +namespace CppUnit { + + class TestResult; + + /** + * A Test can be run and collect its results. + * \see TestResult. + * + */ + class Test + { + public: + virtual ~Test () {}; + + virtual void run (TestResult *result) = 0; + virtual int countTestCases () const = 0; + virtual std::string toString () const = 0; + virtual std::string getName () const = 0; + + + }; + + +} // namespace CppUnit + +#endif // CPPUNIT_TEST_H + |
