Registry / testing / libtest-mimic

libtest-mimic

JSON →
library0.8.2rscratesunverified

Allows writing custom test harnesses that emulate the behavior of Rust's built-in test framework.

# Cargo.toml [dependencies] libtest-mimic = "0.8.2"
INSTALL
IMPORT
SIG · LIBTEST-MIMIC
L
libtest-mimic
testingrustv0.8.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run_tests
use libtest_mimic::run_tests;

Run a custom test harness with a single test.

use libtest_mimic::{run_tests, Trial}; fn main() { let trials = vec![ Trial::test("my_test", || { assert_eq!(2 + 2, 4); Ok(()) }), ]; run_tests(&Default::default(), trials); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
libtest-mimic — cargo add libtest-mimic · libregistry