Skip to content

Add code coverage reporting to CI (Codecov or Coveralls) #809

@davidmaronio

Description

@davidmaronio

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

Description

The contracts CI job installs cargo-tarpaulin and runs coverage but the XML report is never uploaded anywhere. Backend Jest and frontend tests also have no coverage tracking. Without a coverage badge and trend, it is impossible to see if contributions are adding or removing test coverage.

What Needs to Happen

  • Upload cargo-tarpaulin XML to Codecov in the contracts job
  • Add --coverage flag to backend Jest and upload the lcov report
  • Add coverage thresholds: fail CI if coverage drops below 60%
  • Add a coverage badge to README.md

Files

  • .github/workflows/ci.yml
  • README.md

Acceptance Criteria

  • Coverage reports uploaded on every CI run
  • Badge visible on README
  • CI fails if coverage drops below threshold

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions