Testing in Flutter

Sep 19 2023 · Dart 2.19.3, Flutter 3.7.6, Android Studio 2021.3.1, Visual Studio Code 1.7.4

Part 2: Write Unit Tests

05. Test Change Notifier

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 04. Your First Unit Test Next episode: 06. Learn Mocking Unit Test Data

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

We are going to test the Change Notifier, which is part of the Riverpod package. We are using the Riverpod package to manage the state of the app. Having knowledge of Riverpod will be helpful for you to understand the code. If you are unfamiliar with Riverpod, I suggest you read this article on Rivepod.

void main() {

late QuotesNotifier sut_quotesNotifier;
setUp(() {
  sut_quotesNotifier = QuotesNotifier();