iOS Code Testing: Test-Driven Development and Behavior-Driven Development with Swift Front Cover

iOS Code Testing: Test-Driven Development and Behavior-Driven Development with Swift

  • Length: 440 pages
  • Edition: 1st ed.
  • Publisher:
  • Publication Date: 2017-08-01
  • ISBN-10: 1484226887
  • ISBN-13: 9781484226889
  • Sales Rank: #3411730 (See Top 100 Books)
Description

Put into motion practical examples to master Test-Driven Development (TDD) and acceptance testing in Swift.

This book uses a pragmatic approach to writing well-tested code and provides techniques that can be used to retrofit tests to legacy code bases. You’ll be introduced to basic principles of TDD, such as Test First, Red-Green-Refactor, Remove Duplicate code, Dependency Injection, and Single Responsibility. Approaches covered include TDD, behavior-driven development (BDD), UI, and acceptance testing with common standard/open source frameworks.

iOS Code Testing offers helpful instruction to teach iOS developers to retrospectively fit tests to legacy code, refactor legacy code so as to make the code more testable, install and configure a popular Swift BDD framework, practice BDD with Xcode, and create automated UI tests with Xcode. Additionally, many projects have legacy code bases. Legacy code is often seen as a blocker when it comes to implementing any kind of testing.

What You Will Learn

  • Fit test to legacy code retrospectively
  • Install and configure popular Swift BDD frameworks
  • Practice BDD with Xcode

Who This Book Is For

Software practitioners, such as Swift developers and mobile app testers.

Table of Contents

Chapter 1: Introduction to Test-Driven Development
Chapter 2: Writing Your First Set of Unit Tests with Xcode
Chapter 3: The MVVM Architectural Pattern
Chapter 4: Applying TDD to the Model
Chapter 5: Applying TDD to View Controllers
Chapter 6: Applying TDD to Collection View Controllers
Chapter 7: Testing URLSession
Chapter 8: Working with Legacy Code
Chapter 9: Continuous Integration
Chapter 10: Introduction to Behavior-Driven Development
Chapter 11: Installing Quick
Chapter 12: Applying TDD and BDD Techniques
Chapter 13: Testing the User Interface

To access the link, solve the captcha.