CppTest  Version 2.0.0
Public Member Functions | Friends | List of all members
Test::HtmlOutput Class Reference

#include <cpptest-htmloutput.h>

Inheritance diagram for Test::HtmlOutput:
Test::CollectorOutput Test::Output

Public Member Functions

void generate (std::ostream &os, bool incl_ok_tests=true, const std::string &name="")
 
- Public Member Functions inherited from Test::CollectorOutput
virtual void finished (int tests, const Time &time)
 
virtual void suite_start (int tests, const std::string &name)
 
virtual void suite_end (int tests, const std::string &name, const Time &time)
 
virtual void test_start (const std::string &name)
 
virtual void test_end (const std::string &name, bool ok, const Time &time)
 
virtual void assertment (const Source &s)
 
- Public Member Functions inherited from Test::Output
virtual ~Output ()
 
virtual void initialize (int tests)
 

Friends

struct TestSuiteRow
 

Additional Inherited Members

- Protected Types inherited from Test::CollectorOutput
typedef std::list< SourceSources
 
typedef std::vector< TestInfo > Tests
 
typedef std::list< SuiteInfo > Suites
 
- Protected Member Functions inherited from Test::CollectorOutput
 CollectorOutput ()
 
- Protected Member Functions inherited from Test::Output
 Output ()
 
- Protected Attributes inherited from Test::CollectorOutput
Suites _suites
 
int _total_errors
 
int _total_tests
 
Time _total_time
 

Detailed Description

HTML output.

Output handler that creates a HTML table with detailed information about all tests.

Member Function Documentation

◆ generate()

void Test::HtmlOutput::generate ( std::ostream &  os,
bool  incl_ok_tests = true,
const std::string &  name = "" 
)

Generates the HTML table. This function should only be called after run(), when all tests have been executed.

Parameters
osOutput stream.
incl_ok_testsSet if successful tests should be shown; false otherwise.
nameName of generated report.

The documentation for this class was generated from the following files: