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

Wrapping Up

Amazingly, this is the last chapter wrapup in our book! In this chapter, we tested the most sophisticated features in our entire application stack. You probably noticed that the functional nature of Phoenix made testing the application much easier than you might have expected. Our tests run quickly, and they’re compact, thanks to the helpers that abstract concepts like assert_reply, assert_broadcast, and assert_receive. Here’s what we accomplished:

  • We tested our OTP layer for our InfoSys OTP application.

  • We built a specific backend rather than a dynamic stub or mock to keep our tests isolated, as our unit and integration tests should be.

  • We tested our sockets authentication code.

  • We used the Phoenix testing support to test our channels, ...

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