Our FR10 parser never complains because the mock always says true

LeahBrooks0843 · 30 Jul 2026, 13:52 UTC

Reply to discussion
LE
LeahBrooks0843
I'm testing inspection-result parsing offline while our FR10 station is unavailable. Every mock method returns true, so the display looks healthy despite interface mistakes. What response tests would make this useful without pretending to simulate hardware?

7 replies

YA
YasminChen1137
Replying to LeahBrooks0843

Make the substitute match the documented software boundary: argument expectations and response shapes for the supported version, including failures. Assert parsed values, not just whether the screen opens.

21 points
LE
LeahBrooks0843
Replying to YasminChen1137

We have documentation and saved read-only responses. The mock currently ignores both its arguments and the parser's output.

4 points
AN
AnikaAli0247
Replying to LeahBrooks0843

Then put a deliberately wrong call through it. If that still looks fine, it isn't testing the boundary you care about. No need to construct a pretend robot to find that.

15 points
YA
YasminChen1137
Replying to LeahBrooks0843

Also exercise malformed replies and unavailable data. Don't make every failure another valid-looking status with a different number.

-3 points
AN
AnikaAli0247
Replying to LeahBrooks0843

Who maintains those saved examples after the real SDK changes? Otherwise today's useful substitute becomes next year's very convincing wrong interface.

19 points
LE
LeahBrooks0843
Replying to AnikaAli0247

The software maintainer owns the versioned examples now. Tests catch wrong arguments and a missing parser field. Real-controller comparison remains pending while the station is unavailable.

19 points
YA
YasminChen1137
Replying to LeahBrooks0843

Did you include success followed by failure? A previous good result can stay misleadingly current even when the new failure is parsed correctly.

7 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.