Manage State with Provider · Test the ChangeNotifier |

This is a companion discussion topic for the original entry at

Hi! I’m implementing the unit test for the change notifier, and i’m not very satisfied about the solution as actually tests are passing when the expect fails, it’s not obvious that any tests are failing and an automated system may fail to block the release.
Is there a way to show the test as red when the test actually fails?

Hi @85thedenial, thanks for the question! I think this is just a bug in the Flutter extension for VS Code. It may be fixed by now or in a future release of the extension. You could also try using Android Studio for Flutter development, where this bug may not be present. Thanks again!

Great tutorial with lots of new information for me. I appreciate it.

A suggestion: It is good to talk about how to store state and retrieve it when the app launches. Something such as Sharepreferences or a database.