Skip to content

ci: add Codecov integration for test coverage reporting#2191

Merged
nimrod-teich merged 1 commit into
mainfrom
feat/add-codecov-integration
Jan 20, 2026
Merged

ci: add Codecov integration for test coverage reporting#2191
nimrod-teich merged 1 commit into
mainfrom
feat/add-codecov-integration

Conversation

@nimrod-teich

Copy link
Copy Markdown
Contributor

Add coverage profiling to unit tests and upload results to Codecov:

  • Add -coverprofile flag to consensus tests (utils, common, x)
  • Add -coverprofile flag to protocol tests (protocol, cache)
  • Add codecov-action@v5 upload steps with flags for each test group
  • Add explicit workflow permissions for checks and pull-requests
  • Include coverage files in uploaded artifacts

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • read the contribution guide
  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the main branch
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

@nimrod-teich nimrod-teich force-pushed the feat/add-codecov-integration branch from 0ead41d to a61e0eb Compare January 19, 2026 15:44
Add coverage profiling to unit tests and upload results to Codecov:
- Add -coverprofile flag to consensus tests (utils, common, x)
- Add -coverprofile flag to protocol tests (protocol, cache)
- Add codecov-action@v5 upload steps with flags for each test group
- Add explicit workflow permissions for checks and pull-requests
- Include coverage files in uploaded artifacts
@nimrod-teich nimrod-teich force-pushed the feat/add-codecov-integration branch from a61e0eb to 08ccf51 Compare January 19, 2026 15:48
@codecov

codecov Bot commented Jan 19, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@github-actions

github-actions Bot commented Jan 19, 2026

Copy link
Copy Markdown

Test Results

    7 files  ±0     85 suites   - 40   34m 11s ⏱️ -10s
3 174 tests ±0  3 173 ✅ ± 0  1 💤 ±0  0 ❌ ±0 
3 257 runs  ±0  3 256 ✅ ± 0  1 💤 ±0  0 ❌ ±0 

Results for commit 08ccf51. ± Comparison against base commit e6e0591.

♻️ This comment has been updated with latest results.

@nimrod-teich nimrod-teich merged commit b5ccee3 into main Jan 20, 2026
38 of 39 checks passed
@nimrod-teich nimrod-teich deleted the feat/add-codecov-integration branch January 20, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants