Hi, I am happy to share how I implement Snapshot Testing using swift-snapshot-testing library from Pointfree's GitHub! Snapshot Testing is one of testing strategy that compares saved captured screen image with the new captured screen image, so that we can know that if the UI is altered or not, to maintain the UI consistency. Let … Continue reading #3 Explore Swift Snapshot Testing on iOS
Test Double : Spy
In the previous article, we've already talk about Test Double in general. In this article, we will talk about one of test double, called Spy. Testing a component can be helped with another collaborator component with predefined behavior and collecting information. This is called spying. 💡 Spies are stubs that also record some information based on how they were … Continue reading Test Double : Spy
Cleaning AppDelegate or SceneDelegate Using ViewControllerFactory
Factory Design Pattern Illustration Overview AppDelegate or SceneDelegate is the main file that we as iOS developers know to configure, inject, or instantiate a global instance or frameworks. This place become essential, especially because it is actually the starting point of our app. Because it knows so many things, like configuring the frameworks, handling push … Continue reading Cleaning AppDelegate or SceneDelegate Using ViewControllerFactory
Compose Your UseCases to Create New Functionality using Composite Reuse Principle
On the previous article, we already learn about how to create a UseCase. In this article, we are going to learn how we can composes use case and create new one that has different functionality, using Composite Reuse Principle. Let's visit the previous article example. The previous example, we have a LoadTransactionsUseCase protocol to get a general picture … Continue reading Compose Your UseCases to Create New Functionality using Composite Reuse Principle
Clean Code Series — Method
Take Care of Your Code! Simple. Clean. Introduction Methods can be very useful in programming. They are making our code looks better, if we use it the right way. But some programmers don’t really pay attention to method (the clean way). They just keep doing a lot of stuff in one method. In this article, I … Continue reading Clean Code Series — Method