Search⌘ K
AI Features

Introduction to Writing Tests

Explore the essentials of testing Elixir systems by focusing on setup functions, fixtures, and composing tests using ExUnit. Understand how to build a strong testing foundation for your functional core to support project growth and maintainability.

If you’re like us, you may have had a persistent question as we worked on the data design and functional core.

Where are the tests?

Here’s the truth. We don’t write code the way it’s presented in this course. In real life we make more mistakes, switch between data, functions, and tests often, and have debates and spikes on feature branches.

Therefore, we almost always create a test baseline as we go.

Why tests matter

Test designs impact product designs and testing, which has a tremendous impact on everything a development ...