~/talk

Swiftly Separating the What From The How in UI Tests

Talkat Forward Swift 2017 · on Thursday, 2017-03-02· [testing, ios]
slides:none on file

Claims that protocol-based robots let tests express what is verified while swapping how it’s done, and demonstrates it on a Cubs sample app with KIF, XCUI, EarlGrey all calling the same robot methods. Implements Swift protocols with default extensions, shows casting needed to pick a non-default impl, and notes a real-world XCUI simulator bug in Xcode 8.2 plus a testable-import/target-membership workaround. Result: shared reusable tests with only one small copy‑paste for test discovery.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:27Introducing the Robot pattern
  3. 6:23Separating what from how
  4. 9:57Implementing robots in Swift
  5. 13:52Handling framework differences
  6. 17:22Testable imports and accessibility
  7. 18:48Benefits of reusable robots
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.