Registry / testing / test-logger

test-logger

JSON →
library0.1.0rscratesunverified

Simple helper to initialize env_logger before unit and integration tests. Works on stable rust.

# Cargo.toml [dependencies] test-logger = "0.1.0"
INSTALL
IMPORT
SIG · TEST-LOGGER
T
test-logger
testingrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

init
use test_logger::init;

Initialize env_logger in a test.

use test_logger::init; #[test] fn my_test() { init(); log::info!("Test running"); assert_eq!(2 + 2, 4); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
test-logger — cargo add test-logger · libregistry