before_all

Attribute Macro before_all 

Source
#[before_all]
Expand description

Registers a function to be run once before any test in the current module

Example:

use rest::prelude::*;

#[before_all]
fn setup_once() {
    // Initialize test environment once for all tests
}