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, ...