matrix_sdk_test

Macro init_tracing_for_tests

Source
macro_rules! init_tracing_for_tests {
    () => { ... };
}
Expand description

Initialize a tracing subscriber if the target architecture is not WASM.

Uses a sensible default filter that can be overridden through the RUST_LOG environment variable and runs once before all tests by using the ctor crate.

Invoke this macro once per compilation unit (lib.rs, tests/*.rs, tests/*/main.rs).