简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

Always-true mock covering a missing fixture-status call

NathanAbbott0025 · 2026年1月5日 21:42 UTC

已关闭
NA
NathanAbbott0025
I removed the fixture-status call from our offline FR10 application and the test still passed. The mock returns true for anything it is asked, and the test only checks that the screen opens. What should the maintainer make this substitute complain about first?

1 条回复

OM
OmarArcher0404

The missing required call, then wrong method names and arguments. Make it return the documented response shapes for your supported interface, including failures. A happy window isn't much of a parser test.

22

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .