-
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
Warning when specifying the output name with cargo rustc
#9558
Comments
I think when only doing |
I want to build the binaries for unittests and have them in a specific location to run at a later point. Specifying the output name |
I see, that makes sense. Although i'm curious why not run the unit tests by doing |
Determining the coverage of unit-tests with I don't remember all the details but there were quite a few hurdles to get proper numbers. I think one of the problems that occurred was that the build script was included in the coverage measurements when just executing the test directly. Another issue was that I only wanted to instrument my own crate and not all the dependencies. If I recall correctly this is possible with |
I see, i think i'm following now. I think the the way you're doing it is quite reasonable. I don't have any experience with instrument coverage myself, but i found some information that may be useful to you? There is some general usage documentation in the unstable book (there is an example for specifically what you are trying to do), also of interest is this attribute that allows you finer grained control of what gets included in the coverage. Hope this helps |
For now, there isn't a great way to have well known path to the test executable (see #3670). One way is with JSON, which tells you the path. For coverage, it might be best to develop a wrapper (something like the older Otherwise, there isn't a specific way to tell cargo to place the output somewhere else. I think the warnings could be ignored, though using low-level flags like |
Problem
When using the
-o
option withcargo rustc
I get a warning. I do not know what I have should do to fix the warning or if there is a better way to achieve what I am doing.This is the warning:
Steps
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: