Integrate @bgotink/playwright-coverage for E2E test coverage tracking: Install @bgotink/playwright-coverage package Update playwright.config.js with coverage reporter Update test file imports to use coverage-enabled test function Add e2e-tests.yml coverage artifact upload and merge job Create codecov.yml with e2e flag configuration Add E2E coverage skill and VS Code task Coverage outputs: HTML, LCOV, JSON to coverage/e2e/ CI uploads merged coverage to Codecov with 'e2e' flag Enables unified coverage view across unit and E2E tests
42 lines
711 B
YAML
42 lines
711 B
YAML
# Codecov Configuration
|
|
# https://docs.codecov.com/docs/codecov-yaml
|
|
|
|
coverage:
|
|
status:
|
|
project:
|
|
default:
|
|
target: auto
|
|
threshold: 1%
|
|
patch:
|
|
default:
|
|
target: 100%
|
|
|
|
flags:
|
|
backend:
|
|
paths:
|
|
- backend/
|
|
carryforward: true
|
|
|
|
frontend:
|
|
paths:
|
|
- frontend/
|
|
carryforward: true
|
|
|
|
# E2E coverage flag - tracks frontend code exercised by Playwright tests
|
|
e2e:
|
|
paths:
|
|
- frontend/
|
|
carryforward: true
|
|
|
|
component_management:
|
|
individual_components:
|
|
- component_id: backend
|
|
paths:
|
|
- backend/**
|
|
- component_id: frontend
|
|
paths:
|
|
- frontend/**
|
|
- component_id: e2e
|
|
paths:
|
|
- frontend/**
|