Closed
Description
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 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.
Notes
No response
Version
cargo 1.61.0 (a028ae4 2022-04-29)
release: 1.61.0
commit-hash: a028ae42fc1376571de836be702e840ca8e060c2
commit-date: 2022-04-29
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1m)
os: Pop!_OS 22.04 (jammy) [64-bit]