chore: add local pre-CI patch report generation for backend and frontend coverage
- Implemented a new script `local-patch-report.sh` to generate a local patch report. - The report computes patch coverage based on changes from the current branch against `origin/main`. - Integrated backend and frontend coverage inputs, producing both Markdown and JSON output artifacts. - Updated existing frontend coverage script to validate the presence of LCOV coverage file. - Added tests for coverage computation and parsing of unified diffs for changed lines. - Enhanced error handling and validation for coverage inputs and baseline references.
This commit is contained in:
55
.vscode/tasks.json
vendored
55
.vscode/tasks.json
vendored
@@ -125,6 +125,61 @@
|
||||
"group": "test",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Test: Local Patch Report",
|
||||
"type": "shell",
|
||||
"command": "bash scripts/local-patch-report.sh",
|
||||
"group": "test",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Test: Coverage Inputs for Local Patch Report",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Test: Backend with Coverage",
|
||||
"Test: Frontend Coverage (Vitest)"
|
||||
],
|
||||
"dependsOrder": "sequence",
|
||||
"command": "echo 'Coverage inputs for local patch report complete'",
|
||||
"group": "test",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Test: Backend DoD + Local Patch Report",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Test: Backend with Coverage",
|
||||
"Test: Local Patch Report"
|
||||
],
|
||||
"dependsOrder": "sequence",
|
||||
"command": "echo 'Backend DoD + local patch report complete'",
|
||||
"group": "test",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Test: Frontend DoD + Local Patch Report",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Test: Frontend Coverage (Vitest)",
|
||||
"Test: Local Patch Report"
|
||||
],
|
||||
"dependsOrder": "sequence",
|
||||
"command": "echo 'Frontend DoD + local patch report complete'",
|
||||
"group": "test",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Test: Full DoD Unit + Local Patch Report",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Test: Coverage Inputs for Local Patch Report",
|
||||
"Test: Local Patch Report"
|
||||
],
|
||||
"dependsOrder": "sequence",
|
||||
"command": "echo 'Full DoD + local patch report complete'",
|
||||
"group": "test",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Test: E2E Playwright (FireFox)",
|
||||
"type": "shell",
|
||||
|
||||
Reference in New Issue
Block a user