Skip to main content

before_all

Attribute Macro before_all 

Source
#[before_all]
Expand description

Runs once before all tests in the containing module (suite).

mod my_suite {
    use ferridriver_test::prelude::*;

    #[before_all]
    async fn setup(ctx: TestContext) {
        // seed database, etc.
    }

    #[ferritest]
    async fn test_one(ctx: TestContext) { ... }
}