Skip to main content

init_test_logging

Function init_test_logging 

Source
pub fn init_test_logging()
Expand description

Initialize logging for tests (call once)

This function ensures that logging is initialized only once across all tests. It uses env_logger with test mode enabled.

ยงExamples

use reinhardt_testkit::logging::init_test_logging;

// In your test:
init_test_logging();
// Your test code