Making Mock Objects More Useful
Offered By: try! Swift Conference via YouTube
Course Description
Overview
Explore advanced techniques for creating more effective mock objects in Swift during this conference talk from try! Swift Tokyo 2017. Delve into the intricacies of Test Driven Development as Jon Reid, an experienced iOS developer, shares insights gained from developing the Objective-C library OCMockito. Learn how to design powerful mock objects that enhance test expressiveness, covering topics such as call counting, method parameters, argument storage, and assertion extraction. Discover strategies to improve unit tests, handle errors, and implement custom matchers. Gain valuable recommendations for crafting robust, maintainable tests while avoiding common pitfalls in mock object design and usage.
Syllabus
Introduction
Why do we need mock objects
Cooking
Waiter
The most common pattern
Call count
Method parameters
Storing arguments
Unit tests
Extract assertions
Errormsgs
Parameters
Reverse Topics
Reverse Array
Fragility
predicate
assert
error message
error output
hand pressed matches
matchers
helper
failure message
verify method
equal to metric
greater than
when
recommendations
our goal
Taught by
try! Swift Conference
Related Courses
Ruby on Rails: An IntroductionJohns Hopkins University via Coursera Internet of Things Capstone: Build a Mobile Surveillance System
University of California, San Diego via Coursera Engineering Maintainable Android Apps
Vanderbilt University via Coursera Orientação a Objetos com Java
Instituto Tecnológico de Aeronáutica via Coursera TDD – Desenvolvimento de Software Guiado por Testes
Instituto Tecnológico de Aeronáutica via Coursera