Registry / testing / test-env-log

test-env-log

JSON →
library0.2.8rscratesunverified

Replaces the #[test] attribute to initialize logging/tracing before running tests.

# Cargo.toml [dependencies] test-env-log = "0.2.8"
INSTALL
IMPORT
SIG · TEST-ENV-LOG
T
test-env-log
testingrustv0.2.8
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.

test
use test_env_log::test;

A test that initializes logging automatically.

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

No known issues recorded.

Upgrade
Version history
0.2.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
test-env-log — cargo add test-env-log · libregistry