TestReporter.h 527 B

1234567891011121314151617181920
  1. #ifndef UNITTEST_TESTREPORTER_H
  2. #define UNITTEST_TESTREPORTER_H
  3. namespace UnitTest {
  4. class TestDetails;
  5. class TestReporter
  6. {
  7. public:
  8. virtual ~TestReporter();
  9. virtual void ReportTestStart(TestDetails const& test) = 0;
  10. virtual void ReportFailure(TestDetails const& test, char const* failure) = 0;
  11. virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed) = 0;
  12. virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed) = 0;
  13. };
  14. }
  15. #endif