Skip to content

Add code coverage reporting to CI via Codecov #344

@ogazboiz

Description

@ogazboiz

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Description

Tests run in CI but coverage is never measured or reported. Without a baseline it is impossible to tell if PRs are eroding test coverage.

What Needs to Happen

  • Add --coverage to backend Vitest config, output lcov, upload to Codecov
  • Run cargo tarpaulin on contracts and upload XML to Codecov
  • Set minimum thresholds: 60% backend, 70% contracts — fail CI if below
  • Add coverage badge to README
  • Codecov PR comments showing diff coverage

Files

  • .github/workflows/
  • backend/vitest.config.ts
  • README.md

Acceptance Criteria

  • Coverage badge on README
  • CI fails if coverage drops below thresholds
  • Codecov PR comments appear

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programgood first issueGood for newcomersinfraCI/CD and infrastructure

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions