Skip to main content
Apress

Pro iOS Testing

XCTest Framework for UI and Unit Testing

  • Book
  • © 2020

Overview

  • Build a testing infrastructure
  • Draft code ready for testing
  • Incorporate spies, mocks, and code coverage
  • 4758 Accesses

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

Licence this eBook for your library

Institutional subscriptions

Table of contents (11 chapters)

Keywords

About this book

Discover what tools there are for unit testing in iOS, and how to work in a test-driven environment. This book reveals how testing is a crucial capability in any iOS developer’s toolset, and a minimum requirement in iOS interviews.

A few years ago, tests on mobile platforms were not very popular. It wasn’t a technical constraint, more a cultural one. But these days it’s a crucial skill set, especially when projects become big and hard to maintain. This book shows you how to set up a testing target in XCode unit tests. You'll learn how to write unit tests properly and incorporate concepts like spies and mocks and code coverage. You'll also learn the philosophy behind the architecture of UI tests, and how to mock network and DB layers in testing. Write unbreakable UI tests performance tests, as well. And learn the difference between integration tests and snapshot testing.


This book will show you how to maintain code that's not only bug-free butwill also remain high quality over time and maintainable while you make changes and refactors during an app's life. Testing in all its aspects is the best way of maintaining iOS projects to run fast and reliably long after you've released them. 


Many iOS developers working today lack an understanding of the advantages of testing, and might be unfamiliar with tools that make the job easier, such as XCTest framework. With Pro iOS Testing you'll see how to develop and test apps that work and stay working for a long time. 

What You'll Learn
  • Set up a stable testing system
  • Extend an app's lifetime with testing before release
  • Incorporate testing into your everyday development routine
  • Write unbreakable UI tests performance tests
  • Understand the difference between integration tests and snapshot testing



Who This Book Is For
Professional iOS developers with extensive experience in the basics of building apps.

Authors and Affiliations

  • Tel Mond, Israel

    Avi Tsadok

About the author

Avi Tsadok is an accomplished iOS Developer with almost a decade of experience. He currently heads mobile developemnt at Any.do, a leading productivity app. He's also a regular contributor to "Better Programming" and has an active presence on Medium. Having written many iOS articles, he's decided to combine his passion for writing and developing by writing his first book.

Bibliographic Information

  • Book Title: Pro iOS Testing

  • Book Subtitle: XCTest Framework for UI and Unit Testing

  • Authors: Avi Tsadok

  • DOI: https://doi.org/10.1007/978-1-4842-6382-2

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Avi Tsadok 2020

  • Softcover ISBN: 978-1-4842-6381-5Published: 20 October 2020

  • eBook ISBN: 978-1-4842-6382-2Published: 19 October 2020

  • Edition Number: 1

  • Number of Pages: XVII, 302

  • Number of Illustrations: 90 b/w illustrations

  • Topics: Apple and iOS

Publish with us