Manage State with Provider 路 Test the ChangeNotifier | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/6011211-manage-state-with-provider/lessons/8

Hi! I鈥檓 implementing the unit test for the change notifier, and i鈥檓 not very satisfied about the solution as actually tests are passing when the expect fails, it鈥檚 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.