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 ...