-
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
--out-dir but for cargo test #11110
Comments
Looking at the other issue, it seems like you want to get access to the executables for running under a debugger? The intended path for that is to run |
I think the command that you meant is With all respect, regardless whether tests are final artifacts or not. Cargo already has a command to build tests, |
With
Can you say more about why you need the executables placed in a separate directory? Are there problems with the workflow of running them via the target directory? |
Thank you for correcting me. I was randomly following some answers on StackOverflow without checking the cargo's documentation. I'm quite sorry for making an argument based on an assumption.
I'm planning to write some sort of a Because of the future of |
btw there are crates like See example |
If you can access programming interface, such like developing a plugin for neovim, I bet that you can leverage JSON format output of Cargo ( I integrate nvim-dap into my debugging workflow, and here is how I use JSON format. (Warning: I seldom use a debugger for Rust, so this config might be outdated) |
I'm going to close this issue because there are already multiple alternatives to the problem that I was facing and also because the original feature is also still unstable. Thanks everyone! |
Problem
I'm glad that the
--out-dir
is out for thecargo 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.Proposed Solution
Adding
--out-dir
flag incargo test
CLINotes
No response
The text was updated successfully, but these errors were encountered: