Add Codecov integration for unit and e2e coverage#359
Merged
tomasz-tomczyk merged 4 commits intomainfrom Apr 25, 2026
Merged
Conversation
Unit tests upload coverage.out directly. E2E tests build the binary with Go's integration test coverage (-cover flag), collect GOCOVERDIR data as Playwright drives the server, then convert and upload separately. Both appear as flags (unit/e2e) in the Codecov dashboard. run.sh now skips building if CRIT_BIN already points to an existing binary, so CI can inject the coverage-instrumented build. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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. Thanks for integrating Codecov - We've got you covered ☂️ |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- project: auto target with 1% threshold (prevents regressions) - patch: 80% target (new code must be well-covered) - Removes manual bash threshold check — Codecov handles enforcement - Ignores frontend/, e2e/, node_modules/, integrations/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
coverage.out) to Codecov withflag=unitgo build -coverfor e2e, collectsGOCOVERDIRdata as Playwright drives the server, converts and uploads withflag=e2erun.shnow skips building ifCRIT_BINalready points to an existing binary (enables CI to inject the coverage-instrumented build)Test plan
unitande2eflags visible in Codecov dashboardmake e2estill works (run.sh builds normally when CRIT_BIN is unset)🤖 Generated with Claude Code