{"id":59875,"library":"test-context","title":"Test Context","description":"A library for providing custom setup/teardown for Rust tests without needing a test harness.","status":"active","version":"0.5.8","language":"rust","source_language":null,"source_url":"https://codeberg.org/JasterV/test-context","tags":["testing","setup","teardown","context"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntest-context = \"0.5.8\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add test-context","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"TestContext","correct":"use test_context::TestContext;"}],"quickstart":{"code":"use test_context::TestContext;\n\nstruct MyContext;\nimpl TestContext for MyContext {\n    fn setup() -> Self { MyContext }\n    fn teardown(self) {}\n}\n\n#[test]\nfn test_with_context(ctx: &MyContext) {\n    assert!(true);\n}","lang":"rust","description":"Define a test context and use it in a test."},"warnings":[],"env_vars":null,"search_vec":"'context':2,20 'custom':7 'har':16 'librari':4 'need':13 'provid':6 'rust':10 'setup':18 'setup/teardown':8 'teardown':19 'test':1,11,15,17 'without':12","created_at":"2026-06-16T17:19:51.018109+00:00","updated_at":"2026-06-16T17:19:51.018109+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://codeberg.org/JasterV/test-context","github":null,"docs":"https://docs.rs/test-context/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}