/mordor/test/stdoutlistener.h

http://github.com/mozy/mordor · C Header · 35 lines · 28 code · 7 blank · 0 comment · 0 complexity · e855fd5659ab2b0d12a7293d8a5c83a9 MD5 · raw file

  1. #ifndef __STDOUT_LISTENER_H__
  2. #define __STDOUT_LISTENER_H__
  3. #include "test.h"
  4. namespace Mordor {
  5. namespace Test {
  6. class StdoutListener : public TestListener
  7. {
  8. public:
  9. StdoutListener();
  10. void testStarted(const std::string &suite,
  11. const std::string &test);
  12. void testComplete(const std::string &suite,
  13. const std::string &test);
  14. void testSkipped(const std::string &suite,
  15. const std::string &test);
  16. void testAsserted(const std::string &suite,
  17. const std::string &test, const Assertion &message);
  18. void testException(const std::string &suite,
  19. const std::string &test);
  20. void testsComplete();
  21. private:
  22. size_t m_tests;
  23. size_t m_success;
  24. size_t m_skip;
  25. std::vector<std::pair<std::string, std::string> > m_failures;
  26. };
  27. }}
  28. #endif