Daily iOS
Testing

What's worth testing

You just built a product list screen in a live coding round: view model, network, price formatting, and a favorite toggle. The interviewer asks, "on this screen, what's worth testing and what isn't?"

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Price formatting (locale, rounding), the favorite toggle's state transitions and rollback on failure, response decoding, and the loading and error states are worth a lot. Framework behavior (whether URLSession sends the request), plain delegation, view layout, and private implementation details are worth little.

Share a question