Skip to main content

Crate bluetape_rs_test

Crate bluetape_rs_test 

Source
Expand description

Reusable test support helpers.

use bluetape_rs_test::TempDir;

let temp = TempDir::new("bluetape-rs-test").expect("temp dir");
assert!(temp.path().exists());
temp.close().expect("cleanup");

Structs§

ConcurrentConfig
Configuration for bounded concurrent test execution.
MultithreadingTester
Runs registered synchronous blocks on bounded OS worker threads.
SuspendedJobTester
Runs registered async blocks on bounded Tokio worker tasks.
TempDir
Temporary directory removed on drop.

Enums§

AsyncAssertError
Error returned by asynchronous assertion helpers.
ConcurrentAssertError
Error returned by concurrent test execution.

Functions§

consistently
Requires condition to stay successful for duration.
eventually
Retries condition until it succeeds or timeout expires.
run_concurrently
Runs operation concurrently across bounded worker tasks.