summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2017-12-10 19:55:27 -0800
committerBryan Newbold <bnewbold@archive.org>2018-08-10 16:06:46 -0700
commiteda999189592954dbb6ef6103a52e390cc3c727a (patch)
tree7a1a28c24c1d6e0093c5b275805fe45ac2bf1740
parentf8c6b5b660ca2d098b1fb0ceb7ccad798dec92db (diff)
downloadknowledge-eda999189592954dbb6ef6103a52e390cc3c727a.tar.gz
knowledge-eda999189592954dbb6ef6103a52e390cc3c727a.zip
rust: tests with logging
-rw-r--r--software/rust.page3
1 files changed, 3 insertions, 0 deletions
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.