Summary: Testing Our Core
Explore how to test the functional core of Elixir applications by using setup functions to create test data, composing named setups for complex models, and writing descriptive tests that clarify intent. Understand the value of code coverage and property-based testing for robust Elixir system verification.
We'll cover the following...
We'll cover the following...
We’ve been busy in this chapter. We’ve tested our functional core from end to end. Here’s how we did it.
Setup functions
We started with setup functions to build our test data:
-
Since our quiz is a complex model with many complex transitions, we ...