In this new series, we will be learning how we can use Test Driven Development on a networking based iOS project app, and in this case, we will fetch random character from `rickandmortyapi` and display it to the screen! Refactoring is actually changing the implementation without changing the behavior. In this video, we can achieve … Continue reading #3 Part 3 – iOS – TDD – Random Character App – The Power of Tests on During Refactoring
#2 Part 2 – iOS – TDD – Random Character App – TDD Networking with Moya (Continue)
In this new series, we will be learning how we can use Test Driven Development on a networking based iOS project app, and in this case, we will fetch random character from `rickandmortyapi` and display it to the screen! Let's dive in into the second part, the Test Drive Networking layer. We will learn on … Continue reading #2 Part 2 – iOS – TDD – Random Character App – TDD Networking with Moya (Continue)
#1 Part 1 iOS – TDD – Random Character App – Project Setup and TDD Networking
In this new series, we will be learning how we can use Test Driven Development on a networking based iOS project app, and in this case, we will fetch random character from `rickandmortyapi` and display it to the screen! Let's dive in into the first part, the Project Setup and some error handling TDD Networking. … Continue reading #1 Part 1 iOS – TDD – Random Character App – Project Setup and TDD Networking
#5 Swift – TDD + Nearest Palindromic
Hi everyone, this is my very first video in 2023 and this video is about how we can use Test Driven Development to solve Nearest Palindromic algorithm Problem! We can use TDD to solve very small unit of logic, then we can keep refactor our code so that it can works in integration. #testdrivendevelopment #nearestpalindromic … Continue reading #5 Swift – TDD + Nearest Palindromic
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
Unit Testing Tips for Your UI
Photo by NordWood Themes on Unsplash Today, we are going to learn extra tips to test your ViewController. It is always good to have extra test since it can increase your code validity. Testing your viewController can helps you be more extra aware of what is actually going on with the ViewController. There are some tips that I … Continue reading Unit Testing Tips for Your UI
Test Double : Stub
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?
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