𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Pro iOS Testing: XCTest Framework for UI and Unit Testing

✍ Scribed by Avi Tsadok


Publisher
Apress
Year
2020
Tongue
English
Leaves
310
Edition
1st ed.
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


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 but will 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 ForProfessional iOS developers with extensive experience in the basics of building apps.

✦ Table of Contents


Front Matter ....Pages i-xvii
Introduction for Testing (Avi Tsadok)....Pages 1-8
Setting Up Our Infrastructure (Avi Tsadok)....Pages 9-47
Writing Tests – The Basics (Avi Tsadok)....Pages 49-78
Writing Tests – Advanced Techniques (Avi Tsadok)....Pages 79-111
Integration Tests (Avi Tsadok)....Pages 113-139
Write Testable Code (Avi Tsadok)....Pages 141-176
User Interface Tests (Avi Tsadok)....Pages 177-219
Cover Another Aspect of Your App – Performance Testing (Avi Tsadok)....Pages 221-238
Snapshot Testing (Avi Tsadok)....Pages 239-259
Implement Tests in Our Daily Work Routine (Avi Tsadok)....Pages 261-283
Using Command-Line Tools (Avi Tsadok)....Pages 285-293
Back Matter ....Pages 295-302

✦ Subjects


Computer Science; Apple and iOS


πŸ“œ SIMILAR VOLUMES


Unit Test Frameworks
✍ Paul Hamill πŸ“‚ Library πŸ“… 2004 πŸ› O'Reilly Media 🌐 English

Unit test frameworks are a key element of popular development methodologies such as eXtreme Programming (XP) and Agile Development. But unit testing has moved far beyond eXtreme Programming; it is now common in many different types of application development. Unit tests help ensure low-level code co

Unit Test Frameworks
✍ Paul Hamill πŸ“‚ Library πŸ“… 2004 πŸ› O’Reilly Media 🌐 English

Unit test frameworks are a key element of popular development methodologies such as eXtreme Programming (XP) and Agile Development. But unit testing has moved far beyond eXtreme Programming; it is now common in many different types of application development. Unit tests help ensure low-level code co

iOS Unit Testing by Example: XCTest Tips
✍ Jon Reid πŸ“‚ Library πŸ“… 2020 πŸ› Pragmatic Bookshelf 🌐 English

<div><p>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),