~/talk

iOS Testing: Beyond the Model

Talkat 360iDev 2015 · 2015-08-18..08-21· [testing]
slides:none on file

An image‑processing app called Show and Hide that detects a dominant color and produces two partially colored images, with unit tests that split ViewController logic into a presenter seam, verify button selectors and navigation pushes (partial mocks of navigationController), handle asynchronous work with XCTest expectations, compare UIImages by breaking them into RGBA arrays, use OCMock and KIF for complementary UI tests, contain ~300 lines of processing code with 22 tests (~400 lines of test code plus separate performance targets) and speed improving from 5–10s to interactive.

AI-written summary · about

  1. 0:00Introduction
  2. 1:55Controversial assumptions
  3. 3:47Unit tests
  4. 5:54What not to do
  5. 6:53Mocking
  6. 9:16UI Automation
  7. 11:49View controllers
  8. 14:20Testing buttons
  9. 17:59Mock navigation controller
  10. 20:22Asynchronous code
  11. 22:52Last screen
  12. 23:48Image processing
  13. 27:52Unit testing vs UI automation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.