Write readable Flutter UI tests

Sander Kersten
2 min readMay 9, 2020

Widget tests in Flutter often become hard to read and maintain for one of two reasons: One problem is that individual test check too many independent things. This makes it hard to see what exactly is being tested. It will also result tests requiring modifications whenever the widget being tested is changed. Silly example:

Sander Kersten

Physicist. Software developer.