Skip to main content

test

Attribute Macro test 

Source
#[test]
Expand description

Test attribute macro that sets up tracing before running the test.

§Usage

Basic usage (uses #[test]):

#[facet_testhelpers::test]
fn my_test() {
    // tracing is set up automatically
}

With a custom test attribute (e.g., for async tests):

#[facet_testhelpers::test(tokio::test)]
async fn my_async_test() {
    // tracing is set up automatically
}