iOS testing interview questions

XCTest and Swift Testing, async and concurrent tests, test doubles, UI tests, TDD and LLDB.

3 quick facts

– interview-ready · 8 questions in this topic

– of 8 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Writing good unit tests with XCTestSpot the bug
  2. Testing async codePick the fix
  3. Test-driven developmentOrder the steps
  4. Test doubles: stubs, spies, mocks and fakesPick the fix
  5. UI tests with XCUITestFill the blank
  6. Swift TestingFill the blank
  7. Testing concurrent code without sleepsPick the fix
  8. Debugging with LLDBPick the fix

Practise this topic

Flashcards · 11

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 8 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 1 set

Timed, out loud, then tick what you covered. Needs JavaScript.

Fix this PR · 1 review

Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.