File tree Expand file tree Collapse file tree 2 files changed +60
-2
lines changed
Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Original file line number Diff line number Diff line change @@ -164,14 +164,43 @@ if not user:
164164- [ ] 程式碼符合專案既有命名慣例與架構模式
165165- [ ] 檔案儲存至正確位置(依 architecture.md)
166166- [ ] 包含 Gherkin 情境追溯註解
167+ - [ ] 構建成功(無編譯錯誤)
168+ - [ ] 程式碼品質檢查通過(lint、type checking)
169+ - [ ] 所有相關測試通過
170+
171+ ## 測試失敗排查指南
172+
173+ ### 構建失敗
174+ 1 . 檢查編譯/語法錯誤信息
175+ 2 . 驗證引入路徑與檔案位置是否正確
176+ 3 . 確認依賴項是否已安裝
177+
178+ ### 品質檢查失敗(Lint/Type 錯誤)
179+ 1 . 查看具體的 lint 或 type 檢查報告
180+ 2 . 根據專案的 linting 規則修正程式碼風格
181+ 3 . 修正型別不匹配或缺少型別定義
182+
183+ ### 測試失敗
184+ 1 . 檢查失敗的具體情境與錯誤信息
185+ 2 . 驗證程式碼邏輯是否正確對應 Gherkin 規格
186+ 3 . 檢查是否有邊界條件未考慮到
187+ 4 . 確認資料模型與服務實作是否完整
188+ 5 . 修整程式碼後重新運行測試
189+ 6 . 循環直到所有測試通過
167190
168191## 執行流程
169192
1701931 . 讀取 ` docs/features/{feature_name}/architecture.md `
1711942 . 讀取 ` features/{feature_name}.feature `
1721953 . 依據架構文件與專案上下文實作程式碼
1731964 . 將檔案儲存至專案既有目錄結構
174- 5 . 回報已建立的檔案清單
197+ 5 . ** 構建檢查** :運行 ` npm run build ` 或 ` python -m py_compile ` 確保無編譯錯誤
198+ 6 . ** 程式碼品質檢查** :運行 lint 和 type checking(如 ` npm run lint ` 、` npx tsc --noEmit ` )
199+ 7 . ** 測試驗證** :運行測試套件確保程式碼正確性
200+ - 運行相關測試:` npm test ` 或 ` pytest `
201+ - 確保所有情境都能通過
202+ - 如失敗,修整程式碼並重複此步驟
203+ 8 . 回報已建立的檔案清單與驗證結果
175204
176205## 下一步
177206
Original file line number Diff line number Diff line change @@ -165,14 +165,43 @@ if not user:
165165- [ ] 程式碼符合專案既有命名慣例與架構模式
166166- [ ] 檔案儲存至正確位置(依 architecture.md)
167167- [ ] 包含 Gherkin 情境追溯註解
168+ - [ ] 構建成功(無編譯錯誤)
169+ - [ ] 程式碼品質檢查通過(lint、type checking)
170+ - [ ] 所有相關測試通過
171+
172+ ## 測試失敗排查指南
173+
174+ ### 構建失敗
175+ 1 . 檢查編譯/語法錯誤信息
176+ 2 . 驗證引入路徑與檔案位置是否正確
177+ 3 . 確認依賴項是否已安裝
178+
179+ ### 品質檢查失敗(Lint/Type 錯誤)
180+ 1 . 查看具體的 lint 或 type 檢查報告
181+ 2 . 根據專案的 linting 規則修正程式碼風格
182+ 3 . 修正型別不匹配或缺少型別定義
183+
184+ ### 測試失敗
185+ 1 . 檢查失敗的具體情境與錯誤信息
186+ 2 . 驗證程式碼邏輯是否正確對應 Gherkin 規格
187+ 3 . 檢查是否有邊界條件未考慮到
188+ 4 . 確認資料模型與服務實作是否完整
189+ 5 . 修整程式碼後重新運行測試
190+ 6 . 循環直到所有測試通過
168191
169192## 執行流程
170193
1711941 . 讀取 ` docs/features/{feature_name}/architecture.md `
1721952 . 讀取 ` features/{feature_name}.feature `
1731963 . 依據架構文件與專案上下文實作程式碼
1741974 . 將檔案儲存至專案既有目錄結構
175- 5 . 回報已建立的檔案清單
198+ 5 . ** 構建檢查** :運行 ` npm run build ` 或 ` python -m py_compile ` 確保無編譯錯誤
199+ 6 . ** 程式碼品質檢查** :運行 lint 和 type checking(如 ` npm run lint ` 、` npx tsc --noEmit ` )
200+ 7 . ** 測試驗證** :運行測試套件確保程式碼正確性
201+ - 運行相關測試:` npm test ` 或 ` pytest `
202+ - 確保所有情境都能通過
203+ - 如失敗,修整程式碼並重複此步驟
204+ 8 . 回報已建立的檔案清單與驗證結果
176205
177206## 下一步
178207
You can’t perform that action at this time.
0 commit comments