Jump to ratings and reviews
Rate this book

Test-Driven iOS Development with Swift 4 - Third Edition

Rate this book
Write testable and maintainable code to develop highly-functional iOS apps About This Book * A practical guide to writing effective, organized and clean code that works well. * Learn test-driven principles to help you build apps with fewer bugs and better designs * A comprehensive overview of the techniques available for TDD in Swift Who This Book Is For You will need some prior experience with Swift application development. You may have already heard about Test-Driven Development (TDD) but you don't need to have had experience of applying to Swift applications. What You Will Learn * Implement TDD in Swift application development * Find bugs before you enter the code using the TDD approach * Use TDD to build models, view controllers, and views * Test network code with asynchronous tests and stubs * Write code that is a joy to read and to maintain * Develop functional tests to ensure the app works as planned * Employ continuous integration to make testing and deployment easier In Detail 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 apps. In combination with the improved syntax of Swift 4, there is no excuse for writing bad code. This book will help you understand the process of TDD and how to apply it to your apps written in Swift. Through some practical, real-world examples, you'll start seeing how to implement TDD in context. You will begin with an overview of the TDD workflow and then deep dive into unit testing concepts and code cycles. You will also plan and structure your test driven iOS app, and write tests to drive the development of the view controllers and the helper classes. Next, you'll learn how to write tests for network code and will see how the the test-driven approach in combination with stubs helps to write network code even before the backend component is finished., You will also learn Continuous Integration, its benefits to your development process and how to set it up using Xcode Server. Finally, the book will guide you through the next steps to become a testing expert by discussing integration tests, Behavior Driven Development (BDD), open source testing frameworks and UI Tests introduced in Xcode 9.

222 pages, ebook

Published October 30, 2017

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.