with_fixtures_module

Attribute Macro with_fixtures_module 

Source
#[with_fixtures_module]
Expand description

Runs all test functions in a module with setup and teardown fixtures

Example:

use fluent_test::prelude::*;

#[with_fixtures_module]
mod test_module {
    #[setup]
    fn setup() {
        // Initialize test environment
    }
     
    #[tear_down]
    fn tear_down() {
        // Clean up test environment
    }
     
    #[test]
    fn test_something() {
        // Test code - will automatically run with fixtures
        expect!(2 + 2).to_equal(4);
    }
}