Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Class results_collector_t

boost::unit_test::results_collector_t — This class implements test observer interface to collect the result of test unit execution.


// In header: <boost/test/results_collector.hpp>

class results_collector_t {

  // public member functions
  virtual void test_start(counter_t);
  virtual void test_unit_start(test_unit const &);
  virtual void test_unit_finish(test_unit const &, unsigned);
  virtual void test_unit_skipped(test_unit const &, const_string);
  virtual void test_unit_aborted(test_unit const &);
  virtual void assertion_result(unit_test::assertion_result);
  virtual void exception_caught(execution_exception const &);
  virtual int priority();
  test_results const & results(test_unit_id) const;


results_collector_t public member functions

  1. virtual void test_start(counter_t test_cases_amount);
  2. virtual void test_unit_start(test_unit const &);
  3. virtual void test_unit_finish(test_unit const &, unsigned long);
  4. virtual void test_unit_skipped(test_unit const &, const_string);
  5. virtual void test_unit_aborted(test_unit const &);
  6. virtual void assertion_result(unit_test::assertion_result);
  7. virtual void exception_caught(execution_exception const &);
  8. virtual int priority();
  9. test_results const & results(test_unit_id tu_id) const;
    Results access per test unit.



    id of a test unit