iOS Unit Testing by Example

XCTest Tips and Techniques Using Swift



Bookstore > Books > iOS Unit Testing by Example

Price$36.38 - $51.76
Rating
AuthorJon Reid
PublisherThe Pragmatic Programmers
Published2020
Pages358
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101680506811
ISBN-139781680506815
EBook Hardcover Paperback

Fearlessly change the design of your iOS code with solid unit tests. Use Xcode's built-in test framework XCTest and Swift to get rapid feedback on all your code - including legacy code. Learn the tricks and techniques of testing all iOS code, especially view controllers (UIViewControllers), which are critical to iOS apps. Learn to isolate and replace dependencies in legacy code written without tests. Practice safe refactoring that makes these tests possible, and watch all your changes get verified quickly and automatically. Make even the boldest code changes with complete confidence.

Manual code and UI testing get slower the deeper your navigation hierarchy goes. It can take several taps just to reach a particular screen, never mind the actual workflow tests. Automatic unit testing offers such rapid feedback that it can change the rules of development. Bring testing to iOS development, even for legacy code. Use XCTest to write unit tests in Swift for all your code.

iOS developers typically reserve unit tests for their model classes alone. But that approach skips most of the code common to iOS apps, especially with UIViewControllers. Learn how to unit test these view controllers to expand your unit testing possibilities. Since good unit tests form the bedrock for safe refactoring, you're empowered to make bold changes. Learn how to avoid the most common mistakes Swift programmers make with the XCTest framework. Use code coverage to find holes in your test suites. Learn how to identify hard dependencies.


  1. (3 books)


5 5 69

Similar Books


Unity 2018 By Example, 2nd Edition

Unity 2018 By Example, 2nd Edition

by Alan Thorn

Unity is the most exciting and popular engine used for developing games. With its 2018 release, Unity has become the primary source of both game development and virtual reality content.In Unity 2018 By Example, you'll learn how to use Unity in order to make amazing games from popular genres - from action shooters to mind-bending puzz...

Price:  $44.99  |  Publisher:  Packt Publishing  |  Release:  2018

Progressive Web Application Development by Example

Progressive Web Application Development by Example

by Chris Love

Are you a developer that wants to create truly cross-platform user experiences with a minimal footprint, free of store restrictions and features customers want? Then you need to get to grips with Progressive Web Applications (PWAs), a perfect amalgamation of web and mobile applications with a blazing-fast response time.Progressive Web App...

Price:  $31.02  |  Publisher:  Packt Publishing  |  Release:  2018

Pro iOS Testing

Pro iOS Testing

by Avi Tsadok

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,...

Price:  $39.99  |  Publisher:  Apress  |  Release:  2020

Automated Unit Testing with ABAP

Automated Unit Testing with ABAP

by James Edward McDonough

Write automated unit tests for the ABAP language. This book teaches programmers using simple examples and metaphors and explains the underlying concepts of writing effective automated unit tests. Many, if not most, ABAP programmers learned their programming and testing skills before the ABAP development environment provided an automated u...

Price:  $37.34  |  Publisher:  Apress  |  Release:  2021

The Art of Unit Testing, 2nd Edition

The Art of Unit Testing, 2nd Edition

by Roy Osherove

You know you should be unit testing, so why aren't you doing it? If you're new to unit testing, if you find unit testing tedious, or if you're just not getting enough payoff for the effort you put into it, keep reading.The Art of Unit Testing, Second Edition guides you step by step from writing your first simple unit tests ...

Price:  $8.44  |  Publisher:  Manning  |  Release:  2013

AngularJS by Example

AngularJS by Example

by Chandermani

AngularJS makes web JavaScript web development less painful and more organized - it's unsurprising that today it's one of the most popular tools in web development.AngularJS by Example helps you get started with this essential web development framework quickly and easily, guiding you through AngularJS by showing you how to creat...

Price:  $32.00  |  Publisher:  Packt Publishing  |  Release:  2015

Effective Unit Testing

Effective Unit Testing

by Lasse Koskela

Effective Unit Testing teaches Java developers how to write unit tests that are concise, expressive, useful, and maintainable. Offering crisp explanations and easy-to-absorb examples, it introduces emerging techniques like behavior-driven development and specification by example.Programmers who are already unit testing will learn the curr...

Price:  $32.95  |  Publisher:  Manning  |  Release:  2013

Testing Python

Testing Python

by David Sale

Testing Python is the most comprehensive book available on testing for one of the top software programming languages in the world. Python is a natural choice for new and experienced developers, and this hands-on resource is a much needed guide to enterprise-level testing development methodologies. The book will show you why Unit Testing a...

Price:  $21.19  |  Publisher:  Wiley  |  Release:  2014