Skip to content
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

--out-dir but for cargo test #11109

Closed
stevenhansel opened this issue Sep 18, 2022 · 2 comments
Closed

--out-dir but for cargo test #11109

stevenhansel opened this issue Sep 18, 2022 · 2 comments

Comments

@stevenhansel
Copy link

stevenhansel commented Sep 18, 2022

Summary

Original issue: #4875
Implementation: #6790
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html?highlight=--out-dir#out-dir

I'm glad that the --out-dir is out for the cargo build command, but is it possible to also include this feature in cargo test? The use case for me is to run the binary containing the tests under the debugger. I know that probably I can use cargo build and use the --tests flag, but that means I have to modify the Cargo.toml in every project.

P.S. would be so happy if I can contribute to this issue! (if approved)

Unresolved Issues

No response

Future Extensions

No response

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

@stevenhansel stevenhansel added the C-tracking-issue Category: A tracking issue for something unstable. label Sep 18, 2022
@weihanglo
Copy link
Member

Thank you for your report!
However, this shouldn't be a tracking issue. Should choose "Feature Request" template instead. Could you help adjust the description of this issue to align with the correct template? (Or alternatively close this one and reopen)

@stevenhansel
Copy link
Author

I'm glad that the --out-dir is out for the cargo build command, but is it possible to also include this feature in cargo test? The use case for me is to run the binary containing the tests under the debugger. I know that probably I can use cargo build and use the --tests flag, but that means I have to modify the Cargo.toml in every project.

Sure thing, I have re-opened it into a new issue (Feature Request) #11110

@weihanglo weihanglo removed the C-tracking-issue Category: A tracking issue for something unstable. label Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants