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?
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?
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.
TestingShort answerAdvanced
You have dozens of UI tests that are slow and break often. How would you restructure the…
#unit-test #architecture
TestingShort answerIntro
A teammate says they'd rather build one more feature than spend the time writing tests…
#unit-test
TestingShort answerIntro
What's the difference between unit tests, integration tests, and UI tests?
#unit-test
TestingShort answerAdvanced
One item the architecture round scores is "can you add unit tests without a big…
#architecture