DevPrep

All topics

👨‍🔧 Software testing: iOS interview questions

  1. Unit tests Junior PRO
  2. TDD Junior PRO
  3. Test doubles: dummy, stub, spy, mock, fake — what's the difference? Middle PRO
  4. What are the F.I.R.S.T principles for unit tests? Junior PRO
  5. How do you test asynchronous code? Middle PRO
  6. The test pyramid in an iOS project: how many tests of each kind? Junior PRO
  7. XCTest vs Swift Testing: what changed and how to migrate? Middle PRO
  8. How to write mocks in Swift without frameworks: protocols, closures, spies? Middle PRO
  9. How to stub the network in tests: a protocol client or URLProtocol? Middle PRO
  10. What makes code untestable — time, randomness, singletons, UserDefaults — and how to introduce seams? Middle PRO
  11. Snapshot tests: when are they useful and how not to drown in false failures? Middle PRO
  12. UI tests with XCUITest: accessibilityIdentifier, Page Object and stability Middle PRO
  13. 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