iOS Unit Testing by Example

XCTest Tips and Techniques Using Swift



Bookstore > Books > iOS Unit Testing by Example

Price$36.38 - $54.99
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)



4 5 14

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 puzzle ga...

Price:  $44.99  |  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, more a cu...

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

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 to building com...

Price:  $25.09  |  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 create your own...

Price:  $24.99  |  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:  $31.32  |  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

Unit Testing Principles, Practices, and Patterns

Unit Testing Principles, Practices, and Patterns

by Vladimir Khorikov

Unit Testing Principles, Patterns and Practices shows you how to refine your existing unit tests by implementing modern best practices. You'll learn to spot which tests are performing, which need refactoring, and which need to be deleted entirely! Upgrade your testing suite with new testing styles, good patterns, and reliable automated te...

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

Eclipse 4 Plug-in Development by Example

Eclipse 4 Plug-in Development by Example

by Dr Alex Blewitt

As a highly extensible platform, Eclipse is used by everyone from independent software developers to NASA. Key to this is Eclipse's plug-in ecosystem, which allows applications to be developed in a modular architecture and extended through its use of plug-ins and features.Eclipse 4 Plug-in Development by Example Beginner's Guide takes the...

Price:  $26.99  |  Publisher:  Packt Publishing  |  Release:  2013