👨🔧 Software testing: iOS interview questions
- Unit tests Junior PRO
- TDD Junior PRO
- Test doubles: dummy, stub, spy, mock, fake — what's the difference? Middle PRO
- What are the F.I.R.S.T principles for unit tests? Junior PRO
- How do you test asynchronous code? Middle PRO
- The test pyramid in an iOS project: how many tests of each kind? Junior PRO
- XCTest vs Swift Testing: what changed and how to migrate? Middle PRO
- How to write mocks in Swift without frameworks: protocols, closures, spies? Middle PRO
- How to stub the network in tests: a protocol client or URLProtocol? Middle PRO
- What makes code untestable — time, randomness, singletons, UserDefaults — and how to introduce seams? Middle PRO
- Snapshot tests: when are they useful and how not to drown in false failures? Middle PRO
- UI tests with XCUITest: accessibilityIdentifier, Page Object and stability Middle PRO
- Why are tests flaky and how do you fix them? Senior PRO
Practice this before your interview
DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.
Get DevPrep on the App Store