Crate test_harness

Source

Structs§

SharedState

Constants§

SHARED_STATE_TEST_COMPONENT_INDEX

Traits§

TestHarness
A TestHarness is a type that provides an interface to test cases for interacting with functionality under test. For example, a WidgetHarness might provide controls for interacting with and measuring a Widget, allowing us to easily write tests for Widget functionality.

Functions§

run_singlethreaded_test
Runs a test in an executor, potentially repeatedly and concurrently
run_with_harness
We can run any test which is an async function from some harness H to a result

Attribute Macros§

run_singlethreaded_test
Used to run tests that require TestHarness types as inputs on a singlethreaded executor. This attribute should be used instead of #[test], not in addition to it.