|0.2.4||Feb 1, 2023|
|0.2.3||Jul 20, 2022|
|0.2.2||Jun 3, 2022|
|0.2.1||Nov 23, 2021|
|0.1.0||Nov 19, 2020|
#25 in Testing
166,480 downloads per month
Used in 128 crates (115 directly)
This crate provides an easy way to enable logging in tests that use tracing, even if they're async. Additionally, it adds a way to assert that certain things were logged.
The focus is on testing the logging, not on debugging the tests. That's why the
library ensures that the logs do not depend on external state. For example, the
RUST_LOG env variable is not used for log filtering.
- test-log: Initialize loggers before running tests
- tracing-fluent-assertions: More powerful assertions that also allow analyzing spans
Docs / Usage / Example
Copyright © 2020-2023 Threema GmbH, Danilo Bargen and Contributors.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.