Unit testing a Flutter GraphQL app

Dana Hartweg
Flutter Community
Published in
8 min readJul 20, 2022

--

Hand drawn graph on dot paper
Photo by Isaac Smith on Unsplash

Writing tests is the basis of ensuring your application can be built (and modified) with speed an accuracy. It’s fundamental. But what happens when testing isn’t straightforward? When there are gotchas that end up slowing you down in the short-term?

That recently happened to me when switching over to the graphql_flutter package. It wasn’t easy to reason through setting up a proper test harness and I…

--

--