~/talk

Test Driven Development (TDD) by Controlling Dependencies

Talkat GOTO Copenhagen 2015 · 2015-10-05..10-06· [testing]
links:none on file
slides:none on file

Argues that using SOLID and a Clean/hexagonal architecture makes real TDD practical on iOS by isolating view, presenter, interactor and repository layers; shows unit tests that avoid network and Core Data by using in-memory Core Data store, hand-written mocks (overriding UILabel text) instead of heavy mocking frameworks, and tests protocol extensions for segues; notes Xcode UI tests are integration tests, not unit tests; demonstrates a view controller with 92 tests and reports full coverage; uses protocol extensions in Swift 2.

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Testing for Small Things
  3. 1:28Testing for Professionals
  4. 3:56TestDriven Development
  5. 6:13Test Your Code
  6. 7:09Test Only Public Methods
  7. 8:54Assertion
  8. 9:47TDD Dance
  9. 9:59Writing Tests
  10. 11:11Process of TDD
  11. 14:14Cons of TDD
  12. 18:27RealLife Examples
  13. 18:40How many of you do TDD
  14. 19:30UI
  15. 20:22Persistence
  16. 21:19Protocol Extensions
  17. 23:29TDD Swift
  18. 23:49Integration Testing
  19. 26:55Demo
  20. 31:40Architecture
  21. 35:47Testing
  22. 42:23Summary
  23. 46:10Questions
~/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.