In the last article, we've already talk about Test Double in general. In this article, we will talk about on of test double, called stub. Testing a component can be helped with another collaborator component with predefined behavior. This is called stubbing. 💡 Stubs provide canned answers to calls made during the test, usually not responding at … Continue reading Test Double : Stub
Introduction to Test Double : What and Why We Need It?
When it comes to unit testing, testing a component is a crucial way to validate our component is working properly or not. By definition, a component is an implementation detail, it can be a class, or struct, or similar to that. Let's say we have a use case component. This use case is responsible to … Continue reading Introduction to Test Double : What and Why We Need It?
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
From BDD Specs to Use Case Specs (Part 1)
About Use Case Specs Image by AbsoluteVision on Unsplash What is a use case specs? Use case specs is a readable document that derived from the BDD Specs. This document is more technical, so it is more suitable for developers. the use case specs reflects the precondition, steps, happy path (if success), and sad path … Continue reading From BDD Specs to Use Case Specs (Part 1)
Improve Your Unit Testing Readability using SUT Helper Method
Photo by Markus Winkler on Unsplash Unit Testing is really important to guarantee that the code that we write is work. As a Software Engineer, sometimes dealing with testing can be little bit difficult to read, if we don’t do it in a clean and proper way. SUT stands for System Under Test, is a system … Continue reading Improve Your Unit Testing Readability using SUT Helper Method
Software Architecture? Is it Urgent? or Important?
Photo by Joel Filipe on Unsplash Introduction As a software engineer, architecture plays a big role in the development process. It helps the engineering team a lot, even for a small team. It is also helps the apps itself, which is will leads to the success of the product, especially in the future. But, why is … Continue reading Software Architecture? Is it Urgent? or Important?