Function test_harness::run_with_harness

source ยท
pub async fn run_with_harness<H, F, Fut>(
    test_func: F,
    test_component: Option<String>,
)
where H: TestHarness, F: FnOnce(H) -> Fut + Send + 'static, Fut: Future<Output = ()> + Send + 'static,
Expand description

We can run any test which is an async function from some harness H to a result