Commit 3032edf
Fix coverage parsing to properly capture class names
PHPUnit outputs class names and coverage stats on separate lines:
- Line 1: "Progress_Planner\Activity"
- Line 2: " Methods: 55.56% ( 5/ 9) Lines: 91.92% ( 91/ 99)"
The previous grep approach was only capturing the stats line without
the class name, resulting in empty coverage comparisons.
The fix uses awk to:
1. Capture lines starting with class names (^[A-Za-z_])
2. Look for the following stats line
3. Combine them into a single line for parsing
4. Strip ANSI color codes from both parts
This enables the Python comparison script to properly parse class names
and show file-level coverage changes in the collapsible details section.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0a7c79f commit 3032edf
1 file changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
164 | 170 | | |
165 | 171 | | |
166 | 172 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
170 | 182 | | |
171 | 183 | | |
172 | 184 | | |
| |||
0 commit comments