-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Update instrument-coverage.md #105954
Update instrument-coverage.md #105954
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. Please see the contribution instructions for more information. |
Thanks! Can you say more about under which circumstances it will only generate a single file? My understanding is that the default will disambiguate each file such as |
my local env has rustc 1.63, and I run the tests with below commands
the integration tests overwrite the unittests data, so read the coverage data using Once I set |
I believe it was changed in 1.65 via #100384. Can you try with a newer version? |
even it works in later rustc version, it is still important to have that information otherwise users follow the guideline will encounter issues |
I think it would be great to make it a little clearer what the default is for |
I agree with your points to be more specific, but for user on older verson than 1.65, it will cause |
I disagree, as I think it is best for the default experience to not imply that |
@ehuss , can you review the latest changes based on your suggestion |
Could not assign reviewer from: |
Document the default for LLVM_PROFILE_FILE and add a recemmondation for setting it for older versions of Rust which had a different default.
I posted some edits to clarify some of the wording and to use a consistent formatting. I also squashed the commits. @bors r+ rollup |
thanks! |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#105954 (Update instrument-coverage.md) - rust-lang#106835 (new trait solver: rebase impl substs for gats correctly) - rust-lang#106912 (check -Z query-dep-graph is enabled if -Z dump-dep-graph (rust-lang#106736)) - rust-lang#106940 (Improve a TAIT error and add an error code plus documentation) - rust-lang#106942 (Update books) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
explicitly set environment variable LLVM_PROFILE_FILE="default_%m.profraw" when starting cargo test, otherwise, only one
default.profraw
is generated and will be overwritten if run unnittests and integration tests at the same time.