-
Notifications
You must be signed in to change notification settings - Fork 57
get test coverage #461
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
base: main
Are you sure you want to change the base?
get test coverage #461
Conversation
|
I like the idea of code coverage -- I never spent the time looking for such a tool. I don't think it should go in a readme, but rather when there is some developer documentation (I thought there was something minimal in I am actually surprised that the coverage is as high as it is. It's too bad it can't figure out coverage for the YAML rules. I guess that could be a long term project for someone. If there is a way to exclude main.rs from the coverage tests, you should do that. It is a file that I use for testing/debugging because it is easy to do tests while adding something or looking at a bug. I have an alias for |
|
I added it to the testing-section of I think it makes sense to split |
|
Yes, just add the file in the docs folder. It should automatically get built by pages and put into github.io. Make sure to add a link to it in index.md where the other links are. I really need to update the plan as it is getting to be 2 years out of date! That's on me. |
- Consolidated test coverage details into a new `developers.md`. - Updated `index.md` and `helpers.md` to reference the new guide.
|
created a very basic |
after praising the tests today, I was thinking about how I haven't run any test coverage yet ;)
Somehow, this seems more involved for Rust than I thought it would be.
In IntellJ and PyCharm, there are IDE-integrations that immediately let you do it.
RustRover (what a name) doesn't seem to have that (yet).
I managed to get something running with grcov, which generates a report in

target/coverage/html/index.htmlthat looks like this:CONTRIBUTING.mdfor more technical information instead and add this (and some more basics) to it? I think this would be a good idea if there'll be more new people comingEdit: I think I figured out how to do it with my IDE, but I think it's still a good idea to have a Rust-only way to do this