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

Tag: test

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

MVC doesn’t lend itself well to unit testing

Posted on December 18, 2017 by Raymond / 0 Comment

Every beginning iOS developer learns to build their first app using MVC because that’s the way it is taught in guides and tutorials. But as the app evolves out ...

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

Seed data for your unit tests

Posted on June 7, 2016 by Raymond / 9 Comments

As I added new scenes and wrote new unit tests for Clean Swift Xcode templates v2, creating test data manually becomes very tedious. There’s got to be a better ...

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...

Posts pagination

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