Skip to content

Add code coverage reporting via Codecov #373

@ogazboiz

Description

@ogazboiz

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

Description

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

What Needs to Happen

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

Files

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

Acceptance Criteria

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions