https://github.com/benhunter/rust-test-tracing
Demo of tracing logs in test output.
https://github.com/benhunter/rust-test-tracing
log logging rust test testing tracing
Last synced: about 1 month ago
JSON representation
Demo of tracing logs in test output.
- Host: GitHub
- URL: https://github.com/benhunter/rust-test-tracing
- Owner: benhunter
- License: mit
- Created: 2025-01-26T19:46:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T19:53:56.000Z (over 1 year ago)
- Last Synced: 2025-03-23T07:32:19.021Z (about 1 year ago)
- Topics: log, logging, rust, test, testing, tracing
- Language: Nix
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Test Tracing
A simple demo using the test-log and tracing crate to show logs in test output.
# Getting Started
```
RUST_LOG=info cargo test
```
Using cargo-watch and cargo-nextest:
```
RUST_LOG=info cargo watch --clear -x "nextest run"
RUST_LOG=info cargo watch --clear -x "run"
```
# Nix
`flake.nix`, `rust-toolchain.toml`, `.envrc` (for nix-direnv) are included.