O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13Testing Channels and OTP

The last few chapters were packed with new features. We’ve spent quite a bit of time and effort establishing new features that are interactive, compelling, and fast. Our information system uses an external API with flexible backends. Our channels-based API offers real-time web support for a rich user interface, one extremely sensitive to good server performance. Our channels allow peer-to-peer messaging. We’re missing only one thing. Tests.

In this chapter, you’ll see how to test OTP processes in isolation. You’ll learn to use the Phoenix helpers to simplify channels testing. Before we dive in, let’s briefly talk about what you can expect.

Recall that in Part I, the test cases for our controllers used Phoenix ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required