metatest::test_driver

Class of a singleton object representing the entire hierarchy of the test suites. The singleton object can be used to access the root the hierarchy.

#include <metatest/test_driver.hpp>

Methods

None of the methods throws an exception.

static test_driver& test_driver::instance()

The singleton test_driver instance.

const test_suite& test_driver::suite() const

Root of the test suite hierarchy.

void test_driver::add(
  const suite_path& suite_,
  const test_result& result_
)

Add a new test result to a test suite.

Example

int process_results(const test_suite& root_);

int main()
{
  return process_results(test_driver::instance().suite());
}

[up]