Having trouble reading this email? View it in your browser.
New This Week

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

Fearlessly change the design of your iOS code—including view controllers—with XCTest and Swift. Isolate and replace dependencies in legacy code that doesn't have 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!

Recently Released:


Coming Up Next:

  • 555 Timers and How to Use Them, in beta
  • Using Elixir for Graphs, in beta

Best Sellers:

Make sure you haven't missed anything!

  1. Testing Elixir
  2. Become an Effective Software Engineering Manager
  3. The Pragmatic Programmer, 20th Anniversary Edition
  4. Distributed Services with Go
  5. Agile Web Development with Rails6
iOS Unit Testing by Example
June 24, 2020

On this day in 1947, the first widely reported UFO sighting was near Mount Rainier, Washington.

Effective, supportive unit tests can be as rare as UFO sightings these days. Many people seem to forget that unit testing is a coding technique. Unit tests let you make the boldest changes to your code with complete confidence. Learn how with iOS Unit Testing by Example: XCTest Tips and Techniques Using Swift, now content complete and available from pragprog.com/titles/jrlegios.

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

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.

Reshape the design of your code quickly, with less risk and less fear.

Now in print: The ebook is content complete and available from pragprog.com/titles/jrlegios. For the paperback edition, please support your local independent bookstore.

You Could Be a Published Author

Is there a tech topic you are deeply passionate about and want to share with the rest of us? You could become a published Pragmatic Bookshelf author! Take a look at our pragprog.com/become-an-author page for details, including our 50% royalty (yes, for real!) and world-class development editors.

Don't Get Left Out

Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is signup at pragprog.com.

Tell your friends! Tweet this

Follow us on Twitter for the latest news, commentary, and occasional discounts:: @pragprog, Andy Hunt @PragmaticAndy.

Thanks for your continued support,
Andy Hunt
Publisher, Pragmatic Bookshelf

By Professional Developers, for Professional Developers

Sent by the Pragmatic Programmers, LLC. • 9650 Strickland Rd Ste 103-255• Raleigh NC 27615