Testing a Channel

Learn how to write test cases for phoenix channels.

The Phoenix Channel example we’ve provided in the NotSkull sample app, LobbyChannel, has limited functionality. We won’t exhaustively show how to use all of the test macros included in Phoenix as we test ChannelTest, but we’ll cover enough so that we’ll understand how to use all of them.

Understanding the channel

Let’s take a look at the file:

Get hands-on with 1200+ tech skills courses.