pub async fn run_test_and_get_outcome<F>(
connector: impl SuiteRunnerConnector,
test_params: TestParams,
run_params: RunParams,
run_reporter: RunReporter,
cancel_fut: F,
) -> Outcome
Expand description
Runs test specified in |test_params| and reports the results to |run_reporter|.
Options specifying how the test run is executed are passed in via |run_params|.
Options specific to how a single suite is run are passed in via the entry for
the suite in |test_params|.
|cancel_fut| is used to gracefully stop execution of tests. Tests are
terminated and recorded when the future resolves. The caller can control when the
future resolves by passing in the receiver end of a future::channel::oneshot
channel.