You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5KB

  1. // ---
  2. //
  3. // $Id: cpptest-htmloutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $
  4. //
  5. // CppTest - A C++ Unit Testing Framework
  6. // Copyright (c) 2003 Niklas Lundell
  7. //
  8. // ---
  9. //
  10. // This library is free software; you can redistribute it and/or
  11. // modify it under the terms of the GNU Lesser General Public
  12. // License as published by the Free Software Foundation; either
  13. // version 2 of the License, or (at your option) any later version.
  14. //
  15. // This library is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. // Lesser General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU Lesser General Public
  21. // License along with this library; if not, write to the
  22. // Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23. // Boston, MA 02111-1307, USA.
  24. //
  25. // ---
  26. /** \file */
  27. #ifndef CPPTEST_HTMLOUTPUT_H
  28. #define CPPTEST_HTMLOUTPUT_H
  29. #include "cpptest-collectoroutput.h"
  30. namespace Test
  31. {
  32. /// \brief HTML output.
  33. ///
  34. /// %Output handler that creates a HTML table with detailed information
  35. /// about all tests.
  36. ///
  37. class HtmlOutput : public CollectorOutput
  38. {
  39. public:
  40. void generate(std::ostream& os, bool incl_ok_tests = true,
  41. const std::string& name = "");
  42. private:
  43. struct SuiteRow;
  44. struct TestRow;
  45. struct TestSuiteRow;
  46. struct TestResult;
  47. struct TestResultAll;
  48. struct SuiteTestResult;
  49. friend struct TestSuiteRow;
  50. };
  51. } // namespace Test
  52. #endif // #ifndef CPPTEST_HTMLOUTPUT_H