CppTest
Version 2.0.0
|
#include <cpptest-htmloutput.h>
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< Source > | Sources |
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 |
HTML output.
Output handler that creates a HTML table with detailed information about all tests.
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.
os | Output stream. |
incl_ok_tests | Set if successful tests should be shown; false otherwise. |
name | Name of generated report. |