Test-Driven iOS Development with Swift

Create fully-featured and highly functional iOS apps by writing tests first

Test-Driven iOS Development with Swift

This ebook is included in a Mapt subscription
Dr. Dominik Hauser

2 customer reviews
Create fully-featured and highly functional iOS apps by writing tests first
$10.00
$39.99
RRP $31.99
RRP $39.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781785880735
Paperback218 pages

Book Description

Test-driven development (TDD) is a proven way to find software bugs early. Writing tests before your code improves the structure and maintainability of your app.

Test-driven iOS Development with Swift will help you understand the process of TDD and how it impacts your applications written in Swift. Through practical, real-world examples, you’ll start seeing how to implement TDD in context. We will begin with an overview of your TDD workflow and then deep-dive into unit testing concepts and code cycles. We will showcase the workings of functional tests, which will help you improve the user interface. Finally, you will learn about automating deployments and continuous integration to run an environment.

Table of Contents

Chapter 1: Your First Unit Tests
Building your first automatic unit test
Understanding TDD
TDD in Xcode
Advantages of TDD
Disadvantages of TDD
What to test
Summary
Chapter 2: Planning and Structuring Your Test-Driven iOS App
Task list view
Task detail view
Task input view
Structure of the app
Getting started with Xcode
Setting useful Xcode behaviors for testing
Summary
Chapter 3: A Test-Driven Data Model
Implementing the ToDoItem struct
Implementing the Location struct
Implementing the ItemManager class
Summary
Chapter 4: A Test-Driven View Controller
Implementing ItemListViewController
Implementing ItemListDataProvider
Implementing DetailViewController
Implementing InputViewController
Summary
Chapter 5: Testing Network Code
Implementing asynchronous tests
Implementing a login request to a web service
Handling errors
Summary
Chapter 6: Putting It All Together
Connecting parts
Serialization and deserialization
Functional tests
Summary
Chapter 7: Code Coverage and Continuous Integration
Enabling code coverage
Continuous integration
Automatic deployment with fastlane
Summary
Chapter 8: Where to Go from Here
What we have learned so far
Integration tests
UI tests
Behavior-Driven Development
TDD in existing projects
More information about TDD
Summary

What You Will Learn

  • Implement TDD in swift application development
  • Get to know the fundamentals, life cycle, and benefits of TDD
  • Explore the tools and frameworks to effectively use TDD
  • Develop models and controllers driven by tests
  • Construct the network layer using stubs
  • Use functional tests to ensure the app works as planned
  • Automate and streamline the building, analysing, testing, and archiving of your iOS apps

Authors

Table of Contents

Chapter 1: Your First Unit Tests
Building your first automatic unit test
Understanding TDD
TDD in Xcode
Advantages of TDD
Disadvantages of TDD
What to test
Summary
Chapter 2: Planning and Structuring Your Test-Driven iOS App
Task list view
Task detail view
Task input view
Structure of the app
Getting started with Xcode
Setting useful Xcode behaviors for testing
Summary
Chapter 3: A Test-Driven Data Model
Implementing the ToDoItem struct
Implementing the Location struct
Implementing the ItemManager class
Summary
Chapter 4: A Test-Driven View Controller
Implementing ItemListViewController
Implementing ItemListDataProvider
Implementing DetailViewController
Implementing InputViewController
Summary
Chapter 5: Testing Network Code
Implementing asynchronous tests
Implementing a login request to a web service
Handling errors
Summary
Chapter 6: Putting It All Together
Connecting parts
Serialization and deserialization
Functional tests
Summary
Chapter 7: Code Coverage and Continuous Integration
Enabling code coverage
Continuous integration
Automatic deployment with fastlane
Summary
Chapter 8: Where to Go from Here
What we have learned so far
Integration tests
UI tests
Behavior-Driven Development
TDD in existing projects
More information about TDD
Summary

Book Details

ISBN 139781785880735
Paperback218 pages
Read More
From 2 reviews

Read More Reviews