Hi everyone, it has been couple of months since I post my last posts. Today, I am going to share how we can code using Test Driven Development with The Composable Architecture, but I am going to share it in a video format. Test Driven Development is a process for creating a software by following … Continue reading Exploring Test Driven Development with TCA (The Composable Architecture)
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?
The Gherkin Language : BDD Specs
What is Gherkin? Gherkin is a universal language that easily understand by all people on the team. It is actually describe the business value of an app, and it is user oriented document. This language format, or syntax, is also known as a BDD (Behavior Driven Development) Specs. Why we need it? There are some … Continue reading The Gherkin Language : BDD Specs
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
iOS UITesting with XCUITests
UITesting is one of test that Xcode provides the developer to test their app specifically for the UI. Apple’s XCUITests provides simpler and easier approach to test the UI of your app. Here, I created simple app that has login view so we can test weather the logic meets valid condition. Let’s dive to the … Continue reading iOS UITesting with XCUITests