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 ...
Get Real-Time Phoenix now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.