Testing Our Wildcard Channel
Learn about the testing of different Channels.
We'll cover the following
Creating tests for our Wildcard Channel
Channels contain much more application logic than Sockets do. This means they will be a bit more involved to test than Sockets. We’ll write tests for our WildcardChannel
and DedupeChannel
to capture a wide range of testing needs. The amount of testing primitives is relatively low but can still be confusing at first. Keep in mind during our tests that message passing is at the heart of Channels and that the test module uses messages to verify data is sent and received correctly between the test process and a Channel process.
Let’s add tests for our custom join implementation in WildcardChannel
. Then we’ll test that a message can be received and replied to.
Get hands-on with 1400+ tech skills courses.