Repository navigation
test(driver): 救回整合測試與背景定位監看腳本(來自未合併的 PR #40) - #48
Merged
Merged
Conversation
PR #40 的功能(司機端聯絡電話填寫)後來由別的 PR 進了 main,但它帶的兩個檔案 從未落地,且 main 至今沒有對應的東西: - integration_test/driver_phone_test.dart:在**真模擬器跑真 App、打真後端**的驗收。 widget test 用 Fake API,證明不了「電話真的寫進後端、而且沒把 O5 車輛審核弄壞」。 main 先前完全沒有 integration_test 基礎建設,故一併補上 dev dependency。 **對接 main 的實作調整**:原始測試呼叫 api.fetchProfile(),main 沒有這條路徑—— 改用 fetchVehicle(),它順帶回 phone,一次查詢同時驗「號碼正規化落地」與 「改電話不重置審核」。 - tool/watch_driver_location.sh:監看司機位置在鎖屏期間是否持續更新, 以 Redis 的 driver:<id>:loc 為真相來源(後端沒掛 gin.Logger,請求層不印 log)。 **這正是待辦 A5 階段 5「A1 鎖屏長跑背景定位實機驗收」要用的工具**—— 下次接上 iPhone 就會需要它。 驗收:flutter analyze 無 issue、flutter test 216 passed(既有測試不受影響, integration_test 不在 flutter test 的預設掃描範圍);shell 腳本 bash -n 語法通過。 整合測試本身需要真模擬器+後端才能跑,本批未執行。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 28, 2026
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.
關閉舊 PR 前逐一比對的產出。#40 的功能(司機端聯絡電話填寫)
後來由別的 PR 進了 main,但它帶的兩個檔案從未落地,且 main 至今沒有對應的東西。
救回
integration_test/driver_phone_test.dart在真模擬器跑真 App、打真後端的驗收。widget test 用的是 Fake API,
證明不了「電話真的寫進後端、而且沒把 O5 車輛審核弄壞」。
main 先前完全沒有
integration_test基礎建設,故一併補上 dev dependency。對接 main 的實作調整:原始測試呼叫
api.fetchProfile(),main 沒有這條路徑(走的是不同實作)。改用
fetchVehicle()——它順帶回phone,一次查詢同時驗「號碼正規化落地」與「改電話不重置審核」。
tool/watch_driver_location.sh監看司機位置在鎖屏期間是否持續更新,以 Redis 的
driver:<id>:loc為真相來源(後端沒掛
gin.Logger(),請求層不印 log)。這正是待辦 A5 階段 5「A1 鎖屏長跑背景定位實機驗收」要用的工具——下次接上 iPhone 就會需要它。
把它跟著 PR 一起關掉,等於下次要重寫一遍。
驗收
flutter analyze無 issue、flutter test216 passed(既有測試不受影響;integration_test/不在flutter test的預設掃描範圍)。bash -n語法通過。🤖 Generated with Claude Code