Available on non-WebAssembly only.
Expand description
The native half of the harness: libtest-mimic over the catalog.
Natively a test runs in the process that reports it, which is what
cargo nextest drives. The runner is libtest-mimic rather than libtest’s
generated harness because the catalog, not a set of #[test] items, is
what a browser can also offer — so one source file feeds both runners and a
test keeps a single name in both.
libtest-mimic has no #[should_panic], so the comparison lives here and
matches what the browser’s panic hook does: a caught panic passes when its
message contains the message the test declared, and fails otherwise.
Re-exports§
use core::any::Any;🔒use core::panic::AssertUnwindSafe;🔒use crate::TestEntry;🔒
Functions§
- panic_
message 🔒 - The text of a panic payload.
- run
- Run every registered test, reporting through
libtest-mimic. - run_one 🔒
- Drive one test’s future to completion, deciding it against the panic the test declared.