pub fn setup()Expand description
Set up a simple logger for tests.
This function ensures the logger is initialized exactly once using
LazyLock, making it safe to use with both cargo test and
cargo nextest run.
ยงRecommendation
While this works with regular cargo test, we recommend using
cargo nextest run for:
- Process-per-test isolation
- Faster parallel test execution
- Better test output and reporting
Install nextest with: cargo install cargo-nextest
For more information, visit: https://nexte.st