Boost C++ Libraries

...one 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 for the latest Boost documentation.
PrevUpHomeNext

unit_test::runner

Unit test runner interface.

Synopsis

Defined in header <boost/beast/_experimental/unit_test/runner.hpp>

class runner
Member Functions

Name

Description

arg

Set the argument string.

Returns the argument string.

operator=

run

Run the specified suite.

Run a sequence of suites.

run_each

Run all suites in a container.

run_each_if

Conditionally run suites in a container.

run_if

Conditionally run a sequence of suites.

runner [constructor]

~runner [destructor]

Protected Member Functions

Name

Description

on_case_begin

Called when a new case starts.

on_case_end

Called when a new case ends.

on_fail

Called for each failing condition.

on_log

Called when a test logs output.

on_pass

Called for each passing condition.

on_suite_begin

Called when a new suite starts.

on_suite_end

Called when a suite ends.

Description

Derived classes can customize the reporting behavior. This interface is injected into the unit_test class to receive the results of the tests.


PrevUpHomeNext