test(mobile): W3 综合回归矩阵 + 边界单测 - #43
Merged
Merged
Conversation
新增 manual 回归模板(待真机回填): - tests/manual/W3_multi_session_log.md : #25 多场次 5 场景 - tests/manual/W3_p2_log.md : #28/#23/#24 共 15 个真机子用例 - tests/manual/W3_regression_summary.md : 通过率 + 新发现问题汇总 单测增补 3 条 (C1+C2): - TestSelectSessionBoundaryCases.test_select_session_returns_first_match_when_city_omitted - TestSelectSessionBoundaryCases.test_select_session_falls_back_to_index_when_no_match - TestUnknownThresholdZeroBoundary.test_unknown_threshold_zero_disables_alert (xfail strict=True,锁定 unknown_threshold=0 当前 clamp→1 与"0=disable"语义反直觉的缺陷) 发现 1 个新 issue 候选 (TBD-1,P2): unknown_threshold=0 的语义需 PM 决定, 已在 W3_regression_summary.md 记录。 执行结果: - 1020 passed, 1 xfailed(C2 锁定 issue) - coverage 80.98% (>= 80% 门槛) Refs #25 #28 #23 #24
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.
Summary
tests/manual/W3_multi_session_log.md)tests/manual/W3_p2_log.md)tests/manual/W3_regression_summary.md)select_session边界单测 ×2(C1)PageProbe.unknown_threshold=0边界单测 ×1(C2,xfail strict=True 锁定语义缺陷)单测执行结果(本地)
poetry run pytest --cov=mobile --cov-fail-under=80新发现的语义缺陷(待 PM 决策)
PageProbe(unknown_threshold=0)当前实现max(1, ...)夹紧到 1,第一次 unknown 即告警;与"0 = 禁用告警"的直觉语义相反。已用xfail(strict=True)锁定,源码修复后 xfail 自动失效。详见tests/manual/W3_regression_summary.md「发现的新问题」区。Test plan
W3_multi_session_log.md+W3_p2_log.md)不在本 PR 范围
关联