-
Notifications
You must be signed in to change notification settings - Fork 16
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
tests(nss/testutils): Update coverage generation and merging #105
Conversation
3fe634c
to
eabaee5
Compare
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
eabaee5
to
47f2a6e
Compare
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.
Ok, this looks way cleaner and the direction we agreed upon!
I have a couple of comments on the CI + using the script itself.
Just a warning: I didn’t check the coverage result myself, do you mind attaching them in some way?
@didrocks Yeah, I thought |
With the tools added in Go 1.20, some of the helpers we had aren't necessary anymore so we can clean them up.
Coverage collection and merging will be done by our test script, so we can clean the source code.
We already have this tool for a while now, but it was not a part of the repository. Since some changes were made to it to update the way we gather the coverage, it should be added to the repo (even if temporarily)
We updated the way we collect the test coverage, so the CI workflow should reflect this as well.
55e4c3b
to
47bf0fd
Compare
Since Go 1.20, we now have more tools to handle coverage data and binary instrumentation so we should adapt our existing helpers to use those tools. By using them, we can simplify the code and reduce the maintenance load that was imposed by the old helpers.
Tests now should be run with the
gotestcov
script added in this PR. It runs the tests with all the required flags to enable coverage and runs additional commands to convert the Go raw coverage files totextfmt
format, merge the Rust coverage into it and then show the results.UDENG-1679