Using Fake Repositories for Testing¶
In Dart, we can easily create mocks with packages like mockito or mocktail.
But sometimes it’s quite handy to create fakes that can be configured in many different ways (and even store some state).
I often do this to test loading and error states in the UI. 👇
Previous | Next |
---|---|
Anatomy of a Riverpod Provider | How to Generate and Analyze a Flutter Test Coverage Report in VSCode |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023