iOS Unit Testing by Example: XCTest Tips and Techniques Using Swift

- 50%

Original price was: $28.95.Current price is: $14.47.

Add to wishlistAdded to wishlistRemoved from wishlist 0
Sold by
Jon Reid

Product Specs:

  • File Type: PDF
  • File Size: 7.8 MB
  • Book Language: English
  • Total Page Count: 350
  • Instant Download
SKU: DIGI-005872

Unit tests can do more than check model logic: they can help make the view controllers, navigation, and legacy code at the heart of an iOS app safer to change. In iOS Unit Testing by Example, Jon Reid uses Swift and XCTest to show how developers can build that confidence one test at a time.

The approach is hands-on and progresses from XCTest fundamentals to concrete iOS testing scenarios, then applies those skills to refactoring and test-driven development. It gives intermediate iOS developers a practical route into testing code that may not have been designed with tests in mind.

Start with tests that communicate clearly

The foundations section covers assertions, test-case life cycles, setup and teardown, application launch, and code coverage. Rather than treating coverage as a score to chase, the book explores using it to find areas a test suite has not yet exercised.

Bring XCTest into the parts of an app users see

Examples address view-controller work that developers may otherwise leave to manual checks: outlet connections, button actions, alerts, screen navigation, text fields, table views, and view appearance. The book also covers testing UserDefaults and network interactions, including the use of fakes, mocks, and test spies to work with dependencies.

Make difficult code easier to test—and change

When existing code has tightly connected dependencies, Reid discusses ways to isolate them, including dependency injection and other techniques for legacy code. The later chapters put testing to work during refactoring, with examples that move code toward MVVM and MVP, before introducing a test-driven development cycle.

For iOS developers building confidence in their changes

This book is a focused choice for Swift developers who want to broaden their XCTest practice beyond model-level checks, improve feedback while working on app code, and use tests as support for safer refactoring. 📱

Additional Book Details

Book specifications and digital file information

File Size
7.8 MB
File Type
PDF
Language
English
Page Count
350
Publisher
The Pragmatic Bookshelf
ISBN
ISBN_13: 978-1-68050-681-5 | Digital_ISBN_13_EPUB: 9781680507973 | Digital_ISBN_13_Kindle: 9781680507959 | Digital_ISBN_13_PDF: 9781680507980 | Digital_ISBN_13_Safari: 9781680507966
Edition
1
Authors
Jon Reid
Copyright
© 2020 The Pragmatic Programmers, LLC
File Information
iOS Unit Testing by Example XCTest Tips and Techni.pdf
Additional Information
publication_location: Raleigh, North Carolina | BISAC: COM051330 — COMPUTERS / Software Development & Engineering / Quality Assurance & Testing | COM051010 — COMPUTERS / Programming Languages / General | Book_Version: P1.0 — June 2020 | Required_Software: Xcode 10 | Subtitle: XCTest Tips and Techniques Using Swift | User_Level: Intermediate

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
Write a review

There are no reviews yet.

Be the first to review “iOS Unit Testing by Example: XCTest Tips and Techniques Using Swift”

No product has been found!
iOS Unit Testing by Example: XCTest Tips and Techniques Using Swift
iOS Unit Testing by Example: XCTest Tips and Techniques Using Swift

Original price was: $28.95.Current price is: $14.47.

Your Next Chapter Starts Here.

Discover digital books that spark curiosity, inspire fresh ideas, and encourage learning. Explore the BooksStore collection and find your next great read.

Digital eBooks only
Downloadable file formats
Customer support available
Need Assistance?

Email us at [email protected]

Customer Support

General enquiries: response within 24–48 hours. Some issues may require additional time to resolve.

A World of Ideas Awaits

Good reads. Fresh possibilities.

Find something new to learn, enjoy, or explore. Browse the BooksStore collection and discover your next digital read.

Browse eBooks

Digital books only. No physical shipping. File formats vary by product.

Books Store
Logo
Shopping cart