My reporting test passes even when I rename a method to nonsense. The fake politely returns true. How do I make it object before someone trusts this during handover?
Limit the substitute to the methods your supported reporting interface actually exposes. It should reject the nonsense name, not provide a default response for any name.
What does your application do with a genuine failure response? A strict method list helps, but always returning the same successful value could still leave the display's error handling completely untested.
Our developer has retained responses from the supported read-only interface, Jack. Anil, the display currently leaves the last good state showing after a failed read. No indication it stopped receiving valid data.
Test that sequence explicitly. A good result followed by failure should not look like a fresh good result; include a later valid response to check recovery as well.
The test now exposes the stale display. Developer is adding an unavailable state and last-success indication. I've kept the failing sequence in the handover tests; the display change isn't finished yet.
Ask the person reading it whether the last-success indication is clear once that change is ready. A timestamp can be technically present and still look like the time of the current result.