-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
False
-
-
Task
Implement code coverage instrumentation and reporting, integrated with the existing ReportPortal instance and Codecov.
Background
Coverage metrics will be mandated by P&D in CY26. RHDH already uses ReportPortal for test results. The coverage pipeline should leverage this.
Components:
- Unit test coverage: Jest + Istanbul, uploaded to Codecov (upstream) and SonarQube (downstream)
- E2E coverage: Istanbul.js for frontend coverage during Playwright runs
- ReportPortal integration: Link coverage reports to test execution in ReportPortal for unified test health + coverage view
- PR checks: Coverage diff in PR comments via Codecov GitHub integration
- Thresholds: 60% for plugins, 50% for core (start reporting-only, then enforce)
Pipeline: CI -> Tests -> .lcov files -> Codecov/SonarQube + ReportPortal -> DevLake (P&D) -> Grafana
Dependencies and Blockers
- Related: RHDHPLAN-851
Acceptance Criteria
- Codecov configured for RHDH monorepo (upstream)
- SonarQube configured (downstream)
- ReportPortal displays coverage data alongside test results
- Coverage diff in PR comments
- Thresholds enforced after reporting-only period
- Dashboard with coverage trends
- incorporates
-
RHDHPLAN-851 Spike for RHDH Code Coverage (Unit + E2E)
-
- Backlog
-