bt-test-harness
Implementations of the TestHarness
trait for common Bluetooth FIDL interfaces. These are useful for writing integration tests against the interfaces.
See the test-harness crate for a description of the TestHarness
trait.
ยป The typical structure of a harness file contains the following parts: For each harness, we typically include the following:
- A definition of the state needed for the harness.
- An implemention of the TestHarness trait to define initialization and termination for the harness for each test case
- Additional utility functions specific to this helper - commonly predicate functions for simpler asynchronous expectations for verifying the harness state under test (see fuchsia_bluetooth::expectation