1use tracing_subscriber::EnvFilter;
2
3include!(concat!(env!("OUT_DIR"), "/constants.gen.rs"));
5
6#[doc(hidden)]
7pub fn __init_test() {
8 let mut env_filter = EnvFilter::new("ERROR");
9
10 for name in CRATE_NAMES {
12 env_filter = env_filter.add_directive(format!("{name}=TRACE").parse().unwrap());
13 }
14
15 tracing_subscriber::fmt::fmt()
16 .with_env_filter(env_filter)
17 .with_target(true)
18 .with_test_writer()
19 .compact()
20 .try_init()
21 .ok();
22}
23
24#[macro_export]
35macro_rules! init_test {
36 () => {
37 $crate::__init_test();
38 };
39}