Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Making Mock Objects More Useful

try! Swift Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of Making Mock Objects More Useful

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.