Daily iOS
Testing

Tests in a take-home

You got a take-home for a minimal iOS app with basic unit tests, and the brief says to finish in three to five hours. With time that tight, where would you put which tests?

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

Build the testable boundaries first (a network protocol, a view model), then add fast unit tests on Codable decoding, view model state transitions, and error paths. The tests go in as evidence that you set up a testable structure, so where they sit matters more than how many there are.

Share a question