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

Testing Elixir »

With ExUnit you can write tests covering all levels of detail, from unit to integration, but only if you know how to use it to the fullest—we’ll show you how. Explore testing Elixir-specific challenges such as OTP-based modules, asynchronous code, Ecto-based applications, and Phoenix applications. Learn new tools like Mox for mocks and StreamData for property-based testing. Create test suites that add value to your production cycle and guard you against regressions.

Recently Released:

 

Best Sellers:

Make sure you haven't missed anything!

  1. Help Your Boss Help You
  2. Programming Phoenix LiveView
  3. Hands-on Rust
  4. Pythonic Programming
  5. Modern Front-End Development for Rails

See all best sellers...

Testing Elixir
July 28, 2021

Testing Elixir: Effective and Robust Testing for Elixir and its Ecosystem

Write Elixir tests that you can be proud of. Dive into Elixir's test philosophy and gain mastery over the terminology and concepts that underlie good tests. Create and structure a comprehensive ExUnit test suite, starting from the basics, and build comprehensive test coverage that will provide safety for refactoring and confidence that your code performs as designed. Use tests to make your software more reliable and fault tolerant.

Explore the basic tool set provided by ExUnit and Mix to write and organize your test suite. Test code built around different OTP functionality. Isolate your code through dependency injection and by using Mox. Write comprehensive tests for Ecto projects, covering Ecto as a database tool as well as a standalone data validation tool. Test Phoenix channels from end to end, including authentication and joining topics. Write Phoenix controller tests and understand the concepts of integration testing in Elixir. Learn property-based testing with StreamData from the author who wrote the library.

Code with high confidence that you are getting the most out of your test suite, with the right tools that make testing your code a pleasure and a valuable part of your development cycle.

Now in print: Use Coupon Code "LMELIXIRCOMPLETE" for 40% off the ebook at pragprog.com/titles/lmelixir. 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.

Remember, the best way to tell the future is to create it.

Upcoming Author Appearances

  • 2021-07-29 Johanna Rothman, Business Agility DC
  • 2021-08-10 Johanna Rothman, Hands-on Agile Berlin
  • 2021-08-17 Johanna Rothman, Mad City Agility Conference
  • 2021-08-25 Johanna Rothman, Product Management Today
  • 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 sign up 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,

    By Professional Developers, for Professional Developers
    PragProg.com

    Sent by the Pragmatic Programmers, LLC. • 9650 Strickland Rd Ste 103-255• Raleigh NC 27615