...

/

Improving the ExUnit Infrastructure

Improving the ExUnit Infrastructure

Let’s learn how to modify the ExUnit infrastructure to cater to our tests.

Trimming the Infrastructure

Improving our setup is essential, but it’s not enough. We can also strengthen our tests with the following techniques:

  • Strip away ceremony.

  • Organize our infrastructure.

  • Use common aliases and helper functions that can quickly cut a couple of dozen characters in half.

To put it simply, these tiny bits of infrastructure will make it easier for our users to invoke the setups that improve our tests.

Typically, we’d add a few aliases to the top of a file and call it a day, but we’ll often have ...