INCLUDES FREE UPDATES FOR SWIFT 6 AND BEYOND! Click here for full details.
If you're serious about writing great code, you need to be serious about testing. In this book you'll learn how unit tests, UI tests, and more combine to help you work faster and with more confidence.
Unit Tests: Learn to break apart your code to make testing easier, then put together a smart strategy to maximize your code coverage.
UI Tests: Write Swift code to remote control your app, interacting with the UI automatically to make sure it behaves as expected.
TDD: Master the concepts of test-driven development as it applies to Apple's platforms, then apply it to your own projects.
More: The book also covers how to create mocks and stubs, benchmark performance, add continuous integration, and more!
What's in the book?
Testing Swift gives you a thorough grounding in the key testing techniques when working in app development. You'll learn how to benchmark performance, detect regressions, mock components, refactor for testability, and more.
While reading, you'll learn all this and more:
- Structuring your code to make unit testing easier and more reliable.
- Automating your test process so that you can identify problems faster.
- Using the red-green-refactor approach to building high-quality, testable code efficiently.
- Building a solid test suite even in projects where tests are lacking or perhaps missing altogether.
- When code coverage is a useful metric to track your progress – and when it isn't.
- Integrating a sustainable approach to testing that helps your team work faster and with fewer regressions.
- How to separate your model layer from your presentation layer, how to create useful stubs and mocks the hassle-free way, and building a custom approach to testing that fits your company, project, and team – and more!
Testing Swift also includes complete projects that show you the techniques in action, so you can see how to apply what you've learned in real-world code.
What format will the book be in?
You'll get PDF, ePub, Mobi, and HTML, all with no DRM attached.
Will this book teach me Swift?
No. You're looking for Hacking with Swift: http://gum.co/hws-book-pack
The Hacking with Swift guarantee
We want everyone to be happy with all the Hacking with Swift courses they buy, both now and in the future, which is why all our books come with free lifetime Swift updates and free bonus content with our Frequent Flyer Club, and we also encourage folks to join our Slack community to help solve problems.
However, if you aren't happy with a course you bought from us, we offer a 30-day No Questions Asked refund policy. This applies to all books and video courses purchased through Gumroad, which is our primary distributor. So, if you aren't happy with your purchase, if you changed your mind, or if you just bought the wrong thing by accident, we can refund your purchase up to 30 days after it was made.
Any other questions?
If you have questions that aren't answered above, you can tweet me @twostraws or email me at firstname.lastname@example.org.
You've purchased this product
See it in your libraryView in Library
We charged your card and sent you a receipt
You'll need an account to access this in our app. Please create a password to continue.
Download from the App Store or text yourself a link to the app
Good news! Since you already have a Gumroad account, it's also been added to your library.