December 04, 2024
The Case of the Crimson Test Suite: An Introduction to Swift Testing
The Case of the Crimson Test Suite is an introduction to the modern Swift Testing framework.
Testing your packages and apps for Apple platforms has never been easier. The new Swift Testing framework makes it easy for you to write tests that are clean and clear with easy-to-read feedback when a test fails. In this book we begin with tests that run as freestanding functions. Later, we gather some of them up into a suite so that we can run a test individually, as part of a suite, or as one of the entire tests in the current test plan.
You'll write expectations and requirements to test the result of calling your production code, and you'll verify methods that should and do throw an error. You'll test asynchronous code and, in those rare cases when it's needed, write serialized tests. By default Swift Testing runs your tests in parallel in random order for both improved performance and to catch hidden dependencies. You'll create display names and use test description to improve the test output and introduce tags so that you can run a subset of your tests without suites or across many suites.
Now available from pragprog.com/titles/d-dscrimson.
This work was written and produced entirely by the author. We are proud to be distributing it.
Want to Write Something? Share What You Know
From paperbacks and ebooks to online courses and beyond, if you want to create
technical content, we may be your perfect partner.
Leverage our 20+ years of experience, our global distribution network, our
massive fan base, our relationships with industry leaders, our editorial,
production, and marketing prowess, and even our reputation for excellence. Sure,
you could go it alone, but with some of the highest royalties in all of
traditional publishing and your own personal team, why would you bother?
Shoot us an email at proposals@pragprog.com or visit pragprog.com/publish-with-us
for more details today.
Let's publish something together!
Upcoming Author Appearances2024-12-05 Johanna Rothman,
Tech Leader Summit
2025-01-10 Johanna Rothman,
Fake “Agile” is the Norm - How to Instill Agility, not Agile
2025-01-14 Johanna Rothman,
Non-Fiction Writing Workshop: Free Your Inner Writer (online workshop)
Be the First
Sign up for this newsletter at https://pragprog.com/newsletter/ and be the first to hear about our newest
content, best promotions, and upcoming events.
Thanks for your continued support,
By Professional Developers, for Professional Developers PragProg.com
Sent by the Pragmatic Programmers, LLC. • PO Box 271356 • Flower Mound TX 75027
|