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
Hi there, I'm the primary author of cargo nextest, a tool that wraps cargo test. Part of how nextest works is separating out the build and run phases: for the build phase, nextest runs cargo test --no-run --message-format json-render-diagnostics to gather a list of test binaries.
With cargo 1.60 or below, this integrated well with the UI:
However, with 1.61 it looks like it prints out all the executable names before starting any tests.
Steps
cargo test --no-run --message-format json-render-diagnostics
Possible Solution(s)
I think this feature makes a lot of sense if not invoked from a programmatic context, but I believe executable names should not be printed out if JSON output is requested.
Hey, I saw this issue marked as E-easy. I'm new to cargo's code base but I'm interested in contributing and this seems like a good starting point. Can I work on it?
Basically, the message Executable unittests ... is from display_no_run_information. You can determine whether or not to print the message by something like TestOptions.compile_opts.build_config.emit_json(). You may also want to add new tests if needed.
Problem
Hi there, I'm the primary author of cargo nextest, a tool that wraps
cargo test
. Part of how nextest works is separating out the build and run phases: for the build phase, nextest runscargo test --no-run --message-format json-render-diagnostics
to gather a list of test binaries.With cargo 1.60 or below, this integrated well with the UI:
However, with 1.61 it looks like it prints out all the executable names before starting any tests.
Steps
cargo test --no-run --message-format json-render-diagnostics
Possible Solution(s)
I think this feature makes a lot of sense if not invoked from a programmatic context, but I believe executable names should not be printed out if JSON output is requested.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: