Test-Driven iOS Development with Swift

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

Test-Driven iOS Development with Swift

Dr. Dominik Hauser

1 customer reviews
Create fully-featured and highly functional iOS apps by writing tests first
Mapt Subscription
FREE
$29.99/m after trial
eBook
$6.40
RRP $31.99
Save 79%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$6.40
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Test-Driven iOS Development with Swift Book Cover
Test-Driven iOS Development with Swift
$ 31.99
$ 6.40
Test-Driven iOS Development with Swift 4 - Third Edition Book Cover
Test-Driven iOS Development with Swift 4 - Third Edition
$ 31.99
$ 22.40
Buy 2 for $23.90
Save $40.08
Add to Cart

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 1 reviews

Read More Reviews

Recommended for You

Swift Essentials - Second Edition Book Cover
Swift Essentials - Second Edition
$ 27.99
$ 19.60
Mastering Swift 3 Book Cover
Mastering Swift 3
$ 35.99
$ 25.20
Swift 2 Design Patterns Book Cover
Swift 2 Design Patterns
$ 31.99
$ 22.40
Object-Oriented Programming with Swift 2 Book Cover
Object-Oriented Programming with Swift 2
$ 35.99
$ 25.20
Apple Pay Essentials Book Cover
Apple Pay Essentials
$ 23.99
$ 16.80
Android 6 Essentials Book Cover
Android 6 Essentials
$ 23.99
$ 16.80