-
Notifications
You must be signed in to change notification settings - Fork 2k
chore: add unit test coverage reporter #10641
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would love to get warning: 1674 functions have mismatched data
resolved as the branch coverage is really what we need to work on. The claimed 70.91%
line coverage is too high.
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>
This warning means that the report is over-reporting.Poking around I'm seeing issues like llvm/llvm-project#72786, meaning there might not be much we can do here beyond trying to change versions of toolchains and tools. ITG. |
Description
I've been using LLMs to write code a lot lately and realized that it makes the cost of authoring a unit test significantly lower. It's been changing my opinion on how many unit tests/how much coverage we should have. If the cost of a test is dramatically cheaper, would we want to increase our coverage? Is it too extreme to say now we want 100%?
To that end, I just wanted to see what our coverage is today. This PR adds a quick and dirty reporter, just to see how things look. I don't think its useful to run it in CI or anything of that nature yet, until we form a clearer opinion about what I mentioned in the previous paragraph.
This implementation is based on https://doc.rust-lang.org/rustc/instrument-coverage.html.
Testing Instructions
Run the commands that have been added.