Tag: TDD
Test Driven Development in Swift
Here is a beginner tutorial on TDD in Swift by writing a program that checks for a prime number. Let us start by creating a new project, selecting template as Single View Application. Though we won’t be adding anything to the storyboard as we will focus only on the business logic. After creating the project,…
Test Driven Development in iOS – Beginners tutorial – Part 2
This is in continuation of the Test Driven Development in iOS – Beginners tutorial and this covers writing XCTest user interfaces in iOS. AddingTwoNumbers app will have following controls 1. Three textfields – For entering the numbers and displaying the result. 2. Two buttons – Add button to perform addition and Reset button to clear…
Test Driven Development in iOS – Beginners tutorial – Part 1
This is a beginner tutorial on TDD in iOS, explained with an example app that adds two numbers. Let us see try to use some XCTest assertions supported in iOS in this project. Create a New iOS project select the template as Empty Application Enter the required details in Choose options for your new project…