chore: add Playwright E2E coverage with Codecov integration
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
This commit is contained in:
41
codecov.yml
Normal file
41
codecov.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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/**
|
||||
Reference in New Issue
Block a user