Skip to content
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

Code coverage tooling #12

Merged
merged 5 commits into from
Aug 31, 2023
Merged

Code coverage tooling #12

merged 5 commits into from
Aug 31, 2023

Conversation

anmarchenko
Copy link
Member

@anmarchenko anmarchenko commented Aug 30, 2023

What does this PR do?
Adds code coverage support with simplecov and CodeCov.

Motivation
Creating necessary development tooling before releasing the gem

Additional Notes
Note: upload to Codecov currently fails with

[2023-08-31T12:54:37.960Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Commit sha does not match Circle build. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

Did anyone encounter this? I suspect that the reason behind it is that the repository not public; will try to run it again as soon as we make it public.

How to test the change?
Tested via CircleCI

@anmarchenko anmarchenko changed the title basic code coverage support with simplecov Code coverage tooling Aug 30, 2023
@anmarchenko anmarchenko requested a review from a team August 31, 2023 13:00
@anmarchenko anmarchenko marked this pull request as ready for review August 31, 2023 13:01
@@ -20,6 +20,9 @@ gem "standard", "~> 1.31.0"
gem "yard"
gem "webrick"

gem "simplecov"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Do need to use our fork for simplecov. 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using our fork I disabled jruby coverage reporting as jruby support is questionable for this gem

@anmarchenko anmarchenko merged commit 1e801e4 into main Aug 31, 2023
20 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/code_coverage branch September 6, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants