Flutter Golden Testing Hacks

Fred Grott
2 min readNov 11, 2021

With using one or more mocking libraries, we need some way to bridge the chasm of ways methods BDD-wise read as use case sentences. Let me show some tricks to do that.

My Golden Testing Hack

Okay, let’s see a test done the old way using one mocking library:

--

--