Jaim Zuber: Stylish Developers Guide to Unit Testing in Swift

1fa9cb8c7997c8c4d3d251fb5e41f749?s=47 Realm
June 16, 2016
9.9k

Jaim Zuber: Stylish Developers Guide to Unit Testing in Swift

Unit testing is like eating your vegetables. We know we should do it, but can always find an excuse not to. The Unit Test evangelists aren’t much help. They tout endless benefits while providing trivial code examples that don’t match what iOS developers need to build. The evangelists don’t tell you that learning to write testable code is hard. Even if you mastered testing in Objective-C, the static typing of Swift requires a new batch of techniques.

This presentation will cut through the hype and give production proven techniques to get your apps under test. We’ll point out the common patterns that make testing hard and provide better alternatives.

We’ll answer questions like:
How do I test my ViewControllers?
How can I test Storyboard code?
How do I survive without a mocking library or partial mocks?

Learning to write testable code may be hard, but at the other end is more reliable code. As a bonus, learning to write unit tests makes your code better, even when you’re not writing tests.

1fa9cb8c7997c8c4d3d251fb5e41f749?s=128

Realm

June 16, 2016
Tweet

Transcript

  1. 2.
  2. 3.
  3. 4.
  4. 5.
  5. 6.
  6. 7.
  7. 8.
  8. 9.
  9. 10.
  10. 11.
  11. 12.
  12. 14.
  13. 15.
  14. 16.
  15. 17.
  16. 18.
  17. 19.
  18. 20.
  19. 21.
  20. 28.
  21. 29.
  22. 30.
  23. 31.
  24. 32.
  25. 33.
  26. 34.
  27. 35.
  28. 36.
  29. 37.
  30. 38.
  31. 39.
  32. 42.
  33. 43.
  34. 44.
  35. 45.
  36. 46.
  37. 48.
  38. 52.
  39. 53.
  40. 55.
  41. 56.
  42. 57.
  43. 58.
  44. 59.
  45. 60.
  46. 62.
  47. 63.
  48. 65.
  49. 66.
  50. 67.
  51. 68.
  52. 70.
  53. 72.