cleanroom_test

Macro cleanroom_test 

Source
macro_rules! cleanroom_test {
    ($(#[$meta:meta])* $vis:vis async fn $name:ident() $body:block) => { ... };
}
Expand description

Jane-friendly test macro that handles all the boilerplate

This macro provides zero-boilerplate testing with automatic:

  • Container lifecycle management
  • Service setup and teardown
  • Error handling and reporting
  • OTel tracing and metrics

ยงExample

use clnrm::{cleanroom_test, with_database, with_cache};

#[cleanroom_test]
async fn test_user_registration() {
    with_database("postgres:15");
    with_cache("redis:7");
     
    let user = register_user("jane@example.com")?;
    assert!(user.id > 0);
}