Skip to content

Commit 5d05897

Browse files
committed
docs: document how to see logs in tests
1 parent 84d9724 commit 5d05897

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/development.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ $ cargo sqlx prepare -- --tests
110110
```
111111

112112
After that, you should commit the changes to the `.sqlx` directory.
113+
114+
## Logs in tests
115+
By default, logs are disabled in tests. To enable them, add `#[traced_test]`
116+
on top of the test function.

0 commit comments

Comments
 (0)