Running the Test for Our API
Let’s run the tests we've written so far and discuss some of their important qualities.
We'll cover the following...
Properties of our tests
A test is like a scientific experiment. It does something using the codebase and then makes a series of measurements. In ExUnit
, those experiments are function calls and the measurements are assertions. We’re not concerned about mixing several different kinds of assertions in the same test, especially for tests that are pretty ...