Tag: Test Driven Development

  • Create new Test Target in Xcode

    Listed below are the steps to add test target for an existing iOS Projects (iOS 6.0 and older). Click File menu -> New and Select Target from the menu list. Then select Cocoa Touch Testing Bundle under iOS -> Other template section. Enter product name for the new target and other details and click FInish.…

  • 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,…