Providing Test Data with Fixtures
Let’s learn how to use fixtures to build our data.
We'll cover the following
We’ll focus on fixtures in this section. Recall that in our functional core, test fixtures are functions that create data so we can write repeatable tests without the extra ceremony.
Using fixtures in our project
Our quizzes are complex, so the job of our fixtures is to focus on building data, the various structs, and maps that make up our data layer so we can keep those details out of the tests.
Recall that our quizzes have the following structure:
Get hands-on with 1200+ tech skills courses.