mycotest::runner

Function run_tests

Source
pub fn run_tests(
    mk_writer: impl for<'writer> MakeWriter<'writer>,
) -> Result<(), TestsFailed>
Available on crate feature runner only.
Expand description

Run all tests linked into the current binary, outputting test reports to the provided mk_writer.

ยงReturns

  • Err(()) if any test failed
  • Ok(()) if all tests passed