Wrapping Up
Amazingly, this is the last chapter dealing with our Rumbl application! 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 split out an independent caching layer for performance.
-
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access