#async #tracing #testing #test #testing-tools #macro #macros

dev tracing-test-macro

A procedural macro that allow for easier testing of crates that use tracing. Internal crate, should only be used through the tracing-test crate

2 unstable releases

new 0.2.1 Nov 23, 2021
0.2.0 Nov 23, 2021
0.1.0 Nov 19, 2020

#227 in Testing

Download history 1492/week @ 2021-08-09 1636/week @ 2021-08-16 1813/week @ 2021-08-23 1884/week @ 2021-08-30 1105/week @ 2021-09-06 1830/week @ 2021-09-13 1779/week @ 2021-09-20 1725/week @ 2021-09-27 2469/week @ 2021-10-04 1958/week @ 2021-10-11 2338/week @ 2021-10-18 2020/week @ 2021-10-25 2408/week @ 2021-11-01 2619/week @ 2021-11-08 2377/week @ 2021-11-15 1767/week @ 2021-11-22

8,577 downloads per month
Used in 14 crates (via tracing-test)

MIT license

7KB
101 lines

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.

Docs / Usage / Example

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

License

Copyright © 2020-2021 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.

Dependencies

~300–720KB
~18K SLoC