docs(app): 更正測試檔數 52 → 53,並把觸發時機寫進寫作規則 - #96
Merged
Conversation
預約司機那批最後又補了 customer_home_entries_test.dart, 但「現況」那行的檔數沒跟著改。408 passed 是對的,錯的是檔數。 這違反本檔自己立的寫作規則第 1 條(數字要對齊程式碼現況)—— `ls test/*.dart | wc -l` 實際核對過是 53。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
這次踩的就是它:寫完「52 個測試檔」的驗收段落之後, 又補了 customer_home_entries_test.dart,數字沒跟著改。 觸發時機很固定——「已經寫好驗收段落、之後又補了檔案/測試」的那一刻。 核對成本是一行指令,寫進規則裡讓下一個人不用再踩。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
預約司機那批(#95)最後又補了
customer_home_entries_test.dart,但「現況」那行的檔數沒跟著改。408 passed 是對的,錯的是檔數。
ls test/*.dart | wc -l實際核對過是 53。順便把觸發時機寫進規則
這違反的是本檔自己的寫作規則第 1 條,但那條沒說「什麼時候最容易犯」。
補了第 4 條,寫明觸發時機很固定——「已經寫好驗收段落、之後又補了檔案/測試」的那一刻,
並附上一行核對指令。同類的數字錯在 dispatch 也有一個,見
fleet-dispatch #71。
🤖 Generated with Claude Code