Write Tests
If there is one thing that every developer probably has an opinion about, it’s testing. You may believe in test-driven development, where you write tests before writing any of your implementation code. Or maybe you follow the practice of “code first, test second.” We won’t open up any testing philosophy questions in this book. Instead, we’ll look at the available mechanisms for testing our real-time code—and you can apply them using your preferred methodology.
Tests provide us with a higher sense of confidence in the code we’re writing. We are able to trap complex bugs in robust tests that withstand the test of time. In the ideal world, we can capture any bug in a test and prevent it from happening again in the future.
Phoenix provides ...
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