Registry / testing / test-context

test-context

JSON →
library0.5.8rscratesunverified

A library for providing custom setup/teardown for Rust tests without needing a test harness.

# Cargo.toml [dependencies] test-context = "0.5.8"
INSTALL
IMPORT
SIG · TEST-CONTEXT
T
test-context
testingrustv0.5.8
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.

TestContext
use test_context::TestContext;

Define a test context and use it in a test.

use test_context::TestContext; struct MyContext; impl TestContext for MyContext { fn setup() -> Self { MyContext } fn teardown(self) {} } #[test] fn test_with_context(ctx: &MyContext) { assert!(true); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources