Closed AlexW-GH closed 5 years ago
The simplelog output is not captured by tests, due to capturing only happening on LOCAL_STDOUT. The only way I'm aware of for writing to LOCAL_STDOUT, is using print!() and println!().
I suggest adding a dedicated logger for tests, to be able to use the stdout capturing feature. https://github.com/AlexW-GH/simplelog.rs
Added your TestLogger in the latest release.
The simplelog output is not captured by tests, due to capturing only happening on LOCAL_STDOUT. The only way I'm aware of for writing to LOCAL_STDOUT, is using print!() and println!().
I suggest adding a dedicated logger for tests, to be able to use the stdout capturing feature. https://github.com/AlexW-GH/simplelog.rs