News for hackers. Stuff that matters.
Re:Where Yegge’s Wrong by danans on Monday March 26, 2018 @06:48PM (#16683385)
I'll try.

Unit testing frontends is hard because to create a test case, you must simulate a human user's behavior (clicks/taps on a UI) which is inherently complex, and has a lot of possible variations, and then test the correctness of the response the system displays as a human would perceive it. Just because the system sent back the correct data doesn't mean it was rendered in a way that the user can see/understand.

With non-user-facing systems, you can just send the input, and test computationally that the output fits the expected value or range of correct responses.

Of course, one could create a vision system that tested the response of a UI for correctness, but that would be ... super-hard.

There are no comments on this comment yet.