traced-test
traced-test is a Rust crate providing a procedural macro to enhance test functions with tracing capabilities. It ensures that test functions are traced and that their events are buffered and flushed appropriately.
Features
- Automatic Tracing: Automatically sets up tracing for test functions.
- Error Handling: Ensures proper error handling and flushing of trace logs upon test failures.
- Simple Integration: Easy to integrate with existing test functions by replacing the
#[test]attribute.
Usage
Add Dependency
Add the following to your Cargo.toml:
[]
= "0.1"
= "0.1"
= "0.1"
= { = "1.0", = ["full"] }
= "1.0"
Example
Here's an example of how to use traced-test:
use traced_test;
License
This project is licensed under the MIT license.