Skip to main content

test

Attribute Macro test 

Source
#[test]
Expand description

Marks an async test, like #[tokio::test], using the Tokio that Renox re-exports, so apps don’t need tokio as a dependency.

#[renox::test]
async fn home_page() {
    let app = TestApp::new(App::new()).await;
    app.get("/health").await.assert_ok();
}