00001
00002
00003 #ifndef TESTRESULT_H
00004 #define TESTRESULT_H
00005
00006 #include <time.h>
00007
00008
00009 class Failure;
00010
00011 class TestResult
00012 {
00013 public:
00014 TestResult ();
00015 virtual ~TestResult() {};
00016
00017 virtual void testWasRun ();
00018 virtual void startTests ();
00019 virtual void addFailure (const Failure & failure);
00020 virtual void endTests ();
00021
00022 int getFailureCount() const { return failureCount; }
00023
00024 protected:
00025 int failureCount;
00026 int testCount;
00027 time_t startTime;
00028 int secondsElapsed;
00029 };
00030
00031 #endif