From eda999189592954dbb6ef6103a52e390cc3c727a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 10 Dec 2017 19:55:27 -0800 Subject: rust: tests with logging --- software/rust.page | 3 +++ 1 file changed, 3 insertions(+) diff --git a/software/rust.page b/software/rust.page index 404f8b9..af5ea3a 100644 --- a/software/rust.page +++ b/software/rust.page @@ -18,3 +18,6 @@ For local rust/std documentation, do `rustup doc`. Run tests with stdout output: cargo test -- --nocapture + +To run tests with logging enabled (eg, with `env_logger`), make sure you add +`env_logger::init()` to the test function itself. -- cgit v1.2.3