Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Harness Class Reference

Harness Class Reference

Test Harness. More...

#include <utest_harness.h>

Static Public Member Functions

static bool run (const Specification &specification)
 Runs a test specification.
static bool is_busy ()
static bool set_scheduler (utest_v1_scheduler_t scheduler)
 Sets the scheduler to be used.
static void validate_callback (const control_t control=control_t())
 Call this function in the asynchronous callback that you have been waiting for.
static void raise_failure (const failure_reason_t reason)
 Raising a failure causes the failure to be counted and the failure handler to be called.

Detailed Description

Test Harness.

This class runs a test specification for you and calls all required handlers. The harness executes the test specification in an asynchronous fashion, therefore `run()` returns immediately.

Note:
In case of an test abort, the harness will busy-wait and never finish.

Definition at line 46 of file utest_harness.h.


Member Function Documentation

bool run ( const Specification specification ) [static]

Runs a test specification.

Return values:
`true`if the specification can be run
`false`if another specification is currently running

Definition at line 98 of file utest_harness.cpp.