-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo test --no-run
should print the resulting binary name
#9957
Comments
cargo test --no-run
should pring the resulting binary namecargo test --no-run
should print the resulting binary name
Hm, yea, as you probably know the usual intended use-case is to use In the meantime, one workaround is to use cargo test --no-run --message-format=json | jq 'select(.reason=="compiler-artifact") | .executable' |
I think no-run actually predates JSON support, so I imagine original use-case was different. Perhaps
? Would also be cool to put the tests into a better location that deps, but target directory layout is a whole different yak |
I guess we might also want to do the same for Anyways, I would like to work on this, if possible. |
Ah, indeed. Perhaps Alex just used @vrongmeal Sure! I would start off being a little conservative and just add a message when |
Problem:
I am profiling my Rust application, so I want to compile the tests with
--no-run
and run the binary directly. However, the output doesn't say where the result is:I have to manually
ls traget/release/deps
to get the file nameProposed solution:
The name is convenientl printed when you don't pass no-run:
Would be great to add a message similar to
Running target (path)
to--no-run
output.The text was updated successfully, but these errors were encountered: