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

chore: fix coverage uploads to Codecov #306

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

warber
Copy link
Contributor

@warber warber commented Nov 25, 2024

This PR

Fixes publishing test coverage results to Codecov.
The coverage results are now saved in two separate files, coverage-unit.out and coverage-e2e.out, preventing any overwrites during the execution of the two test suites. Additionally, each result is uploaded to Codecov separately, with distinct flags to logically differentiate them.

Related Issues

fixes #304

How to test

https://app.codecov.io/github/open-feature/go-sdk/tree/warber%2Fgo-sdk%3Atest%2Ffix-codecov-upload/openfeature

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.86%. Comparing base (510b2a6) to head (e2f919a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #306       +/-   ##
=========================================
+ Coverage      0   86.86%   +86.86%     
=========================================
  Files         0       12       +12     
  Lines         0     1370     +1370     
=========================================
+ Hits          0     1190     +1190     
- Misses        0      156      +156     
- Partials      0       24       +24     
Flag Coverage Δ
e2e 86.86% <ø> (?)
unit 86.86% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@warber warber force-pushed the test/fix-codecov-upload branch 3 times, most recently from 40aff65 to e0d9e72 Compare November 25, 2024 16:22
Write test reports to separate files and upload them separately

Signed-off-by: Bernd Warmuth <[email protected]>
@warber warber marked this pull request as ready for review November 25, 2024 16:29
@warber warber requested a review from a team as a code owner November 25, 2024 16:29
@warber warber changed the title chore: write test cov results to separate files (WIP) chore: fix coverage uploads to Codecov Nov 25, 2024
@toddbaert toddbaert merged commit 96d86ba into open-feature:main Nov 26, 2024
11 checks passed
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.

[BUG] CodeCov reports are not working anymore and are not properly tracked
3 participants