I have a crate with production code in the src directory and integration tests in the tests directory. The production code uses log ma
src
tests
log
For now, you can just re-initialize the logger at the top of every test and ignore the error. It's not a pretty solution but it works and is perfectly safe.
let _ = env_logger::init(); // your test code...