BLACK FRIDAY: Save 50% on all my Swift books and bundles! >>

Testing Swift

Join over 100,000 readers today

Take control of your code

Includes free updates for new Swift versions – click to read my update policy

If you're serious about writing great code, you need to be serious about writing great tests. 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.

AND 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 will give 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, how to build 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. If you're serious about writing better code, it's time to step up your game and test your Swift – buy Testing Swift today!

Download full table of contents

Download free 24-page sample

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.