Why does our FR5 test double accept a status query I misspelled?

SamBrooks0855 · 24 Nov 2025, 15:38 UTC

Closed
SA
SamBrooks0855
I already check the displayed fixture status and the stored state separately. But I misspelled a query while working offline and our test double happily returned true. Everything stayed green. What is the smallest useful replacement for this thing before we add more screen tests?

6 replies

ME
MeiBrooks0864
Replying to SamBrooks0855

Give it explicit methods and arguments from your supported interface; unknown calls should fail the test.

10 points
SA
SamBrooks0855
Replying to MeiBrooks0864

That caught the typo immediately. I have the installed interface version's documentation, so I'll use its response shapes too. Our current true value doesn't resemble a status response.

8 points
RI
RickShift
Replying to SamBrooks0855

What did the screen do when the query failed?

9 points
SA
SamBrooks0855
Replying to RickShift

Kept the last green status without marking it old. The stored value stayed unchanged too. We were only checking that the screen didn't crash.

1 points
ME
MeiBrooks0864
Replying to SamBrooks0855

Try success followed by failure, then check the age label as well as the stored value.

6 points
SA
SamBrooks0855
Replying to MeiBrooks0864

Thanks Mei, that sequence exposed the stale display. Offline tests now cover it and reject unknown calls. I still need to compare the response examples against the real controller when it's available.

12 points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .