tracing-test

Crates.iotracing-test
lib.rstracing-test
version0.2.5
sourcesrc
created_at2020-11-19 09:24:55.329133
updated_at2024-06-02 16:23:41.064564
descriptionHelper functions and macros that allow for easier testing of crates that use `tracing`.
homepage
repositoryhttps://github.com/dbrgn/tracing-test
max_upload_size
id313942
size24,352
Danilo Bargen (dbrgn)

documentation

README

tracing-test

Build status Crates.io Version Crates.io Downloads

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.

Similar crates:

Docs / Usage / Example

See https://docs.rs/tracing-test/.

License

Copyright © 2020-2023 Threema GmbH, Danilo Bargen and Contributors.

Licensed under either of

Contribution

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.

Commit count: 45

cargo fmt