Skip to content

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Apr 19, 2024

  • 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 #12737.

Suggested changelog info:

New Features

  • add rust-analyzer.runnables.extraTestBinaryArgs to configure test harness options when running tests; replaces a previously hard-coded --nocapture option.

I'm not sure I made the right choices in vocabulary, between “binary”, “executable”, and “runnable”, and “launch” vs. “execute”, so let me know if I missed something to be consistent with in the naming and documentation.

* 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#12737>.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 19, 2024
@Veykril
Copy link
Member

Veykril commented Apr 19, 2024

TIL about --show-output, thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Apr 19, 2024

📌 Commit db292bd has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 19, 2024

⌛ Testing commit db292bd with merge 9b4fb7c...

@bors
Copy link
Contributor

bors commented Apr 19, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 9b4fb7c to master...

@bors bors merged commit 9b4fb7c into rust-lang:master Apr 19, 2024
@kpreid kpreid deleted the nocapture branch December 23, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make --nocapture optional
4 participants