You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,12 +223,28 @@ cargo +1.76.0 test <OPTIONS>
223
223
224
224
For each `expand()`-like method call within your tests a temporary and uniquely named Rust project will get generated within `$CARGO_TARGET_DIR/target/tests/`.
225
225
By default these projects will get deleted upon test completion (regardless of the outcome).
226
-
If you wish to take a look at the actual code/projects being expanded you can provide `TRYEXPAND_KEEP_ARTIFACTS=1` (e.g. `$ TRYEXPAND_KEEP_ARTIFACTS=1 cargo test`) and `tryexpand` will skip the cleanup.
226
+
If you wish to take a look at the actual code/projects being expanded you can provide `TRYEXPAND_KEEP_ARTIFACTS=1` and `tryexpand` will skip the cleanup:
227
+
228
+
```terminal
229
+
TRYEXPAND_KEEP_ARTIFACTS=1 cargo test
230
+
```
227
231
228
232
#### `TRYEXPAND_TRUNCATE_OUTPUT`
229
233
230
234
By default `tryexpand` truncates console output that's longer than 100 lines.
231
-
If you wish to temporarily turn this behavior you can provide `TRYEXPAND_TRUNCATE_OUTPUT=0` (e.g. `$ TRYEXPAND_TRUNCATE_OUTPUT=0 cargo test`) and `tryexpand` will produce the full console output.
235
+
If you wish to temporarily turn this behavior you can provide `TRYEXPAND_TRUNCATE_OUTPUT=0` and `tryexpand` will produce the full console output:
236
+
237
+
```terminal
238
+
TRYEXPAND_TRUNCATE_OUTPUT=0 cargo test
239
+
```
240
+
241
+
#### `TRYEXPAND_DEBUG_LOG`
242
+
243
+
If you wish to see the exact commands that `tryexpand` is executing you can provide `TRYEXPAND_DEBUG_LOG=1` (together with `--nocapture`, if you also wish to see logs of passing tests) and `tryexpand` will print additional debug logs:
0 commit comments