Add test logging and dev-console debugging hints

This commit is contained in:
Félix Saparelli 2021-12-24 02:48:21 +13:00
parent 3f94c3c088
commit 3bfbcaaa2f
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,20 @@ There are a few anti goals:
but watchexec itself will remain generic, usable for any purpose.
## Debugging
To enable verbose logging in tests, run with:
```console
$ env RUST_LOG=watchexec=trace,info RUST_TEST_THREADS=1 RUST_NOCAPTURE=1 cargo test --test testfile -- testname
```
To use [Tokio Console](https://github.com/tokio-rs/console):
1. Add `--cfg tokio_unstable` to your `RUSTFLAGS`.
2. Run the CLI with the `dev-console` feature.
## PR etiquette
- Maintainers are busy or may not have the bandwidth, be patient.