Wrapping Up
Let's wrap up the chapter.
We'll cover the following
Summary
In this chapter, we covered testing controllers and Phoenix Channels as the interfaces to our Phoenix-based web application.
- Controller tests are used in applications that serve JSON-based API endpoints as well as server-rendered HTML endpoints.
- Channel tests cover the interactions over web sockets. We covered the most common test-helper functions provided by Phoenix, Plug, and ChannelTest.
- We also went over the how and why of making sure our tests cover both return values and side effects.
Get hands-on with 1200+ tech skills courses.