mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-22 16:22:27 +00:00
Replace --show-output
with --nocapture
The former does not show any output before the test is finished, which prevents long-running/stuck tests from showing any useful information.
This commit is contained in:
parent
90b3db1a52
commit
d0e07f080b
4 changed files with 5 additions and 5 deletions
|
@ -895,7 +895,7 @@ config_data! {
|
||||||
/// [custom test harness](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field),
|
/// [custom test harness](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field),
|
||||||
/// they will end up being interpreted as options to
|
/// they will end up being interpreted as options to
|
||||||
/// [`rustc`’s built-in test harness (“libtest”)](https://doc.rust-lang.org/rustc/tests/index.html#cli-arguments).
|
/// [`rustc`’s built-in test harness (“libtest”)](https://doc.rust-lang.org/rustc/tests/index.html#cli-arguments).
|
||||||
runnables_extraTestBinaryArgs: Vec<String> = vec!["--show-output".to_owned()],
|
runnables_extraTestBinaryArgs: Vec<String> = vec!["--nocapture".to_owned()],
|
||||||
|
|
||||||
/// Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private
|
/// Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private
|
||||||
/// projects, or "discover" to try to automatically find it if the `rustc-dev` component
|
/// projects, or "discover" to try to automatically find it if the `rustc-dev` component
|
||||||
|
|
|
@ -256,7 +256,7 @@ fn main() {}
|
||||||
{
|
{
|
||||||
"args": {
|
"args": {
|
||||||
"cargoArgs": ["test", "--package", "foo", "--test", "spam"],
|
"cargoArgs": ["test", "--package", "foo", "--test", "spam"],
|
||||||
"executableArgs": ["test_eggs", "--exact", "--show-output"],
|
"executableArgs": ["test_eggs", "--exact", "--nocapture"],
|
||||||
"overrideCargo": null,
|
"overrideCargo": null,
|
||||||
"cwd": server.path().join("foo"),
|
"cwd": server.path().join("foo"),
|
||||||
"workspaceRoot": server.path().join("foo")
|
"workspaceRoot": server.path().join("foo")
|
||||||
|
@ -289,7 +289,7 @@ fn main() {}
|
||||||
],
|
],
|
||||||
"executableArgs": [
|
"executableArgs": [
|
||||||
"",
|
"",
|
||||||
"--show-output"
|
"--nocapture"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"kind": "cargo",
|
"kind": "cargo",
|
||||||
|
|
|
@ -1323,7 +1323,7 @@ tests or binaries. For example, it may be `--release`.
|
||||||
Default:
|
Default:
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
"--show-output"
|
"--nocapture"
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -2789,7 +2789,7 @@
|
||||||
"rust-analyzer.runnables.extraTestBinaryArgs": {
|
"rust-analyzer.runnables.extraTestBinaryArgs": {
|
||||||
"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).",
|
"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).",
|
||||||
"default": [
|
"default": [
|
||||||
"--show-output"
|
"--nocapture"
|
||||||
],
|
],
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue