Function run_tests_and_get_outcome

Source
pub async fn run_tests_and_get_outcome<II, EI, F>(
    connector: impl RunBuilderConnector,
    test_params: II,
    run_params: RunParams,
    run_reporter: RunReporter,
    cancel_fut: F,
) -> Outcome
where F: Future<Output = ()>, II: IntoIterator<Item = TestParams, IntoIter = EI>, EI: Iterator<Item = TestParams> + ExactSizeIterator,
Expand description

Runs tests 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.