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,
Publisher, Pragmatic Bookshelf
By Professional Developers, for Professional Developers
Sent by the Pragmatic Programmers, LLC. • 9650 Strickland Rd Ste 103-255• Raleigh NC 27615