Skip to content
Clean Swift
Clean Architecture + TDD. Code less. Test more.
  • Handbook
  • Testing
  • Mentorship
  • Store
  • Services
  • Work
  • Blog
  • About

Tag: test double

Uncategorized

How to mock an Apple built-in class

Posted on January 3, 2018 by Raymond / 2 Comments

The MKMapItem class is an Apple built-in class. How do I make sure the openInMaps(launchOptions:) method is being invoked on MKMapItem when I test the displayRo...

Uncategorized

Does stubbing give you an empty feeling – am I stubbing too much?

Posted on November 2, 2017 by Raymond / 0 Comment

As you start writing your first few unit tests, this is how you’re going to feel. You’re testing a class, then you need to stub out some other class, and some m...

Uncategorized

Clean Swift TDD Part 5 – Complete the VIP Cycle

Posted on December 2, 2015 by Raymond / 28 Comments

In my last post, you learned how to test your presenter and format data properly for display. We also introduced a new displayFetchedOrders() method in the view...

Uncategorized

Clean Swift TDD Part 3 – Worker

Posted on November 18, 2015 by Raymond / 13 Comments

In part 1 and part 2, you tested the ListOrdersViewController and ListOrdersInteractor, respectively. But we left it kind of hanging because we mocked out the O...

Uncategorized

Testing View Controller – Part 2

Posted on October 20, 2015 by Raymond / 5 Comments

I’ve written a book to teach you how to write unit tests effectively. If you want to make your tests fast so you’ll actually run them and run them often to rece...

Posts pagination

1 2 Next »
© 2025 Clean Swift LLC. All rights reserved. Privacy and Terms.
Powered by WordPress | Theme: Graphy by Themegraphy