Skip to content

Commit f183712

Browse files
authored
Merge pull request #178 from MarcoIeni/docs-document-how-to-see-logs-in-tests
docs: document how to see logs in tests
2 parents 84d9724 + 5d05897 commit f183712

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)