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

Enforce coverage requirement and reporting via codecov #672

Merged
merged 5 commits into from
Aug 21, 2023

Conversation

Hook25
Copy link
Collaborator

@Hook25 Hook25 commented Aug 21, 2023

Description

This upgrades our coverage reporting by uploading to codecov.io. Using the features of said service, this also starts to enforce a patch based coverage requirement (for now just hardcoded at 80%).

Resolved issues

Resolves: https://warthogs.atlassian.net/browse/CHECKBOX-799

Documentation

This adds a new section to the contributing guide that explains how to get a local coverage report, why we want a coverage constraint and how we enforce it. This section also points to where the coverage constraint is specified and how it is reported io PRs (the pointer is there because in the future we may want to change the requirement, we don't want to have to update this file with the new one!)

Tests

N/A

@Hook25 Hook25 changed the title Upload codecov io Enforce coverage requirement and reporting via codecov Aug 21, 2023
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@1c76d39). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #672   +/-   ##
=======================================
  Coverage        ?   31.46%           
=======================================
  Files           ?      302           
  Lines           ?    35156           
  Branches        ?     6141           
=======================================
  Hits            ?    11061           
  Misses          ?    23572           
  Partials        ?      523           

@Hook25
Copy link
Collaborator Author

Hook25 commented Aug 21, 2023

The codecov message works :) the issue it is pointing at is due to the fact that he does not know how much coverage we have in main yet

Copy link
Contributor

@kissiel kissiel left a comment

Choose a reason for hiding this comment

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

One suggestion and one question below.

CONTRIBUTING.md Outdated Show resolved Hide resolved
codecov.yml Outdated Show resolved Hide resolved
@Hook25 Hook25 requested a review from kissiel August 21, 2023 11:37
Copy link
Contributor

@kissiel kissiel left a comment

Choose a reason for hiding this comment

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

Looks good!
+1

@Hook25 Hook25 merged commit a4416bb into main Aug 21, 2023
43 of 47 checks passed
@Hook25 Hook25 deleted the upload_codecov_io branch August 21, 2023 12:23
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