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

The Case of the Crimson Test Suite

Check out this quick, hands-on introduction to the new Swift Testing Framework. You’ll learn how easy it is to now write and run tests for your Swift code, and the results are so much cleaner and clearer. You'll collect some tests in a suite and use tags to group others. You'll write expectations and requirements and learn various techniques to combine and simplify them. You’ll actually look forward to testing your code.

Recently Released:

 
BlueSky X LinkedIn Instagram Mastedon Facebook

Best Sellers:

Make sure you haven't missed anything!

  1. Agile Web Development with Rails 8
  2. Network Programming in Elixir and Erlang
  3. Real-World Event Sourcing
  4. Advanced Hands-on Rust
  5. Engineering Elixir Applications

See all best sellers...

The Case of the Crimson Test Suite
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 Appearances

  • 2024-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