-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprd-test-coverage.json
More file actions
363 lines (363 loc) · 12.7 KB
/
Copy pathprd-test-coverage.json
File metadata and controls
363 lines (363 loc) · 12.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
{
"projectName": "MASH E-Commerce - Test Coverage Expansion",
"version": "1.0.0",
"branchName": "develop",
"description": "Expand test coverage from 54%/44%/50%/54% (statements/branches/functions/lines) toward 80%/75%/80%/80% thresholds. Target high-impact untested modules: layout, search, product components, checkout, seller pages, and auth utilities.",
"owner": "AI Agent (Ralph)",
"startedDate": "2026-02-27",
"targetCompletion": "2026-02-28",
"lastUpdated": "2026-02-27T07:59:33.893Z",
"planDocument": ".github/TEST_COVERAGE_PLAN.md",
"progressDocument": "progress.txt",
"totalStories": 16,
"completedStories": 16,
"currentPhase": "COMPLETE",
"baselineMetrics": {
"statements": "54.07%",
"branches": "43.94%",
"functions": "49.87%",
"lines": "53.9%",
"totalTests": 5844,
"totalSuites": 253
},
"targetMetrics": {
"statements": ">=70%",
"branches": ">=60%",
"functions": ">=65%",
"lines": ">=70%"
},
"successMetrics": {
"build": "npm run build passes with zero errors",
"tests": "All test suites pass with 0 failures",
"lint": "npm run lint passes with zero warnings",
"coverageImprovement": "Each story adds measurable coverage to its target module"
},
"stories": [
{
"id": "TCOV-001",
"title": "Layout Header Component Tests (91 uncovered statements)",
"priority": 1,
"passes": true,
"suite": "src/components/layout/__tests__/header.test.tsx",
"target": "src/components/layout/header.tsx",
"uncoveredStatements": 91,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders desktop navigation links",
"Test renders mobile hamburger menu",
"Test cart icon with badge count",
"Test user avatar dropdown when authenticated",
"Test login/signup buttons when not authenticated",
"Test search bar interaction"
],
"estimatedEffort": "45 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 30
},
{
"id": "TCOV-002",
"title": "SearchAutocomplete Component Tests (128 uncovered)",
"priority": 1,
"passes": true,
"suite": "src/components/search/__tests__/SearchAutocomplete.test.tsx",
"target": "src/components/search/SearchAutocomplete.tsx",
"uncoveredStatements": 128,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders search input",
"Test typing triggers autocomplete suggestions",
"Test selecting a suggestion navigates to product",
"Test empty query shows no suggestions",
"Test keyboard navigation of suggestions",
"Test close on outside click"
],
"estimatedEffort": "45 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 26
},
{
"id": "TCOV-003",
"title": "QuickViewModal Component Tests (92 uncovered)",
"priority": 2,
"passes": true,
"suite": "src/components/product/__tests__/QuickViewModal.test.tsx",
"target": "src/components/product/QuickViewModal.tsx",
"uncoveredStatements": 92,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test modal opens with product data",
"Test displays product image, name, price",
"Test add to cart button interaction",
"Test add to wishlist button interaction",
"Test close modal",
"Test quantity selector"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 36
},
{
"id": "TCOV-004",
"title": "AddressPicker Component Tests (121 uncovered)",
"priority": 2,
"passes": true,
"suite": "src/components/checkout/__tests__/AddressPicker.test.tsx",
"target": "src/components/checkout/AddressPicker.tsx",
"uncoveredStatements": 121,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders address form fields",
"Test selecting saved address",
"Test adding new address",
"Test address validation",
"Test map integration placeholder",
"Test callback on address selection"
],
"estimatedEffort": "45 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 24
},
{
"id": "TCOV-005",
"title": "Auth Utility Tests (58 uncovered in lib/auth.ts)",
"priority": 1,
"passes": true,
"suite": "src/lib/__tests__/auth.test.ts",
"target": "src/lib/auth.ts",
"uncoveredStatements": 58,
"currentCoverage": "52%",
"acceptanceCriteria": [
"Test setAuthToken stores token in cookie",
"Test getAuthToken retrieves token from cookie",
"Test clearAuthToken removes both tokens",
"Test SSR detection prevents client-side operations",
"Test token refresh flow",
"Test logout clears all auth state"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 34
},
{
"id": "TCOV-006",
"title": "ProductImageGallery Component Tests (41 uncovered)",
"priority": 2,
"passes": true,
"suite": "src/components/product/__tests__/ProductImageGallery.test.tsx",
"target": "src/components/product/ProductImageGallery.tsx",
"uncoveredStatements": 41,
"currentCoverage": "39%",
"acceptanceCriteria": [
"Test renders main image and thumbnails",
"Test clicking thumbnail changes main image",
"Test no-image fallback state",
"Test image zoom on hover",
"Test mobile swipe navigation"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 18
},
{
"id": "TCOV-007",
"title": "PasswordManager Component Tests (113 uncovered)",
"priority": 2,
"passes": true,
"suite": "src/components/profile/__tests__/PasswordManager.test.tsx",
"target": "src/components/profile/PasswordManager.tsx",
"uncoveredStatements": 113,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders password change form",
"Test current password validation",
"Test new password strength requirements",
"Test password confirmation match",
"Test successful password change",
"Test error handling on API failure"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 33
},
{
"id": "TCOV-008",
"title": "Signup Page Tests (81 uncovered)",
"priority": 2,
"passes": true,
"suite": "src/app/(auth)/signup/__tests__/page.test.tsx",
"target": "src/app/(auth)/signup/page.tsx",
"uncoveredStatements": 81,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders signup form fields",
"Test email validation",
"Test password requirements display",
"Test Google signup button",
"Test form submission",
"Test redirect to login link"
],
"estimatedEffort": "45 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 27
},
{
"id": "TCOV-009",
"title": "Seller Settings Page Tests (285 uncovered)",
"priority": 3,
"passes": true,
"suite": "src/app/(seller)/seller/settings/__tests__/page.test.tsx",
"target": "src/app/(seller)/seller/settings/page.tsx",
"uncoveredStatements": 285,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders settings tabs/sections",
"Test profile settings form",
"Test notification preferences",
"Test store information section",
"Test save changes interaction",
"Test loading and error states"
],
"estimatedEffort": "60 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 30
},
{
"id": "TCOV-010",
"title": "Seller Order Detail Page Tests (212 uncovered)",
"priority": 3,
"passes": true,
"suite": "src/app/(seller)/seller/orders/[id]/__tests__/page.test.tsx",
"target": "src/app/(seller)/seller/orders/[id]/page.tsx",
"uncoveredStatements": 212,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders order details with items",
"Test displays customer information",
"Test order status badge",
"Test status update actions",
"Test order timeline/history",
"Test loading and error states"
],
"estimatedEffort": "60 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 60
},
{
"id": "TCOV-011",
"title": "ReviewInsights Component Tests (98 uncovered)",
"priority": 3,
"passes": true,
"suite": "src/components/seller/__tests__/ReviewInsights.test.tsx",
"target": "src/components/seller/ReviewInsights.tsx",
"uncoveredStatements": 98,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders average rating display",
"Test rating distribution bars",
"Test recent reviews list",
"Test empty state when no reviews",
"Test loading state",
"Test timeframe filter"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 19
},
{
"id": "TCOV-012",
"title": "AddressManager Component Tests (93 uncovered)",
"priority": 3,
"passes": true,
"suite": "src/components/profile/__tests__/AddressManager.test.tsx",
"target": "src/components/profile/AddressManager.tsx",
"uncoveredStatements": 93,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders list of saved addresses",
"Test add new address form",
"Test edit existing address",
"Test delete address with confirmation",
"Test set default address",
"Test empty state"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 26
},
{
"id": "TCOV-013",
"title": "OrderCard Component Tests (37 uncovered)",
"priority": 2,
"passes": true,
"suite": "src/components/orders/__tests__/OrderCard.test.tsx",
"target": "src/components/orders/OrderCard.tsx",
"uncoveredStatements": 37,
"currentCoverage": "57%",
"acceptanceCriteria": [
"Test renders order summary with items",
"Test displays order status badge",
"Test shows order date and total",
"Test track order button visibility",
"Test click expands order details",
"Test action buttons based on status"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 29
},
{
"id": "TCOV-014",
"title": "BulkActionBar Component Tests (78 uncovered)",
"priority": 3,
"passes": true,
"suite": "src/components/__tests__/BulkActionBar.test.tsx",
"target": "src/components/BulkActionBar.tsx",
"uncoveredStatements": 78,
"currentCoverage": "0%",
"acceptanceCriteria": [
"Test renders when items are selected",
"Test hidden when no items selected",
"Test select all toggle",
"Test bulk delete action",
"Test bulk status change action",
"Test selected count display"
],
"estimatedEffort": "30 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 37
},
{
"id": "TCOV-015",
"title": "Full Suite Validation and Coverage Report",
"priority": 1,
"passes": true,
"acceptanceCriteria": [
"All 253+ test suites pass with 0 failures",
"No existing tests broken by new tests",
"npm run build passes",
"npm run lint passes",
"Coverage improvement documented in progress.txt"
],
"estimatedEffort": "15 minutes",
"completedAt": "2026-02-27T07:59:33.893Z",
"testCount": 401
},
{
"id": "TCOV-016",
"title": "Batch 4: Chatbot Analytics + Page Render Tests (14 files, 106 tests)",
"priority": 2,
"passes": true,
"acceptanceCriteria": [
"chatbot-analytics.coverage.test.ts: 39 tests covering all 15 functions via jest.unmock",
"Page render tests for about, contact, login, grower, stores pages",
"Page render tests for privacy, terms, shipping-info, returns-policy (static content)",
"Page render tests for forgot-password, welcome, reset-success, blog pages",
"All 298 suites pass with 0 failures",
"Coverage improved: Stmts 65.50% (+1.40%), Lines 66.28%"
],
"estimatedEffort": "60 minutes",
"completedAt": "2026-02-27T12:00:00.000Z",
"testCount": 106
}
]
}