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
Make test harness arguments configurable and not --nocapture.
* Added config `runnables.extraTestBinaryArgs` to control the args.
* The default is `--show-output` rather than `--nocapture` to prevent
unreadable output when 2 or more tests fail or print output at once.
* Renamed variables in `CargoTargetSpec::runnable_args()` for clarity.
Fixes <rust-lang/rust-analyzer#12737>.
Copy file name to clipboardExpand all lines: editors/code/package.json
+10
Original file line number
Diff line number
Diff line change
@@ -1594,6 +1594,16 @@
1594
1594
"type": "string"
1595
1595
}
1596
1596
},
1597
+
"rust-analyzer.runnables.extraTestBinaryArgs": {
1598
+
"markdownDescription": "Additional arguments to be passed through Cargo to launched tests, benchmarks, or\ndoc-tests.\n\nUnless the launched target uses a\n[custom test harness](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field),\nthey will end up being interpreted as options to\n[`rustc`’s built-in test harness (“libtest”)](https://doc.rust-lang.org/rustc/tests/index.html#cli-arguments).",
1599
+
"default": [
1600
+
"--show-output"
1601
+
],
1602
+
"type": "array",
1603
+
"items": {
1604
+
"type": "string"
1605
+
}
1606
+
},
1597
1607
"rust-analyzer.rustc.source": {
1598
1608
"markdownDescription": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it if the `rustc-dev` component\nis installed.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option does not take effect until rust-analyzer is restarted.",
0 commit comments