Unit tests: You can use the flutter_test library. Cheat sheet below group((String) description, () {}) – function allows you to create a group of tests. The tests go inside the curly braces, of course. test((String) description, () {}) – inside the group body, used to run a synchronous test testWidget((String) description, () async {}) –Continue reading “Testing in Flutter”
Tag Archives: test
Boring Show Episode 2 Notes
Basic Testing Tutorial here. Flutter test library documentation here. Tester.pump() runs one frame of the app and then stops. Tester.pumpAndSettle() runs until the queued events are all done. You can do find.byIcon() or find.byType() (and likely a lot of other useful things too). For converting JSON, quick and easy way is to use dart:convert (built-in).Continue reading “Boring Show Episode 2 Notes”