Expand description
Logging utilities for test infrastructure.
This module provides a global, thread-safe logger handle for capturing and
inspecting log output during tests. The LoggerHandle ensures exclusive
access to prevent interference between concurrent tests.
use wireframe_testing::logger;
#[tokio::test]
async fn logs_are_collected() {
let mut log = logger();
log::info!("example");
assert!(log.pop().is_some());
}Structs§
- Logger
Handle - Handle to the global logger with exclusive access.
- logger
Functions§
- logger
- rstest fixture returning a
LoggerHandlefor log assertions.