Member-only story
Why Flutter Instrument Testing Is An Antipattern
In general, Google has this bug up their posterior that, for some reason that they will not tell you; that instrument testing is preferred. But, ahem, the flutter SDK and example code is not instrumented tested.
In fact, a big eCommerce firm only tests their Flutter apps via unit tests and goldens testing. Yes, you know that company as eBay. Let me show you what eBay discovered and why you should use it instead of the antipattern instrumented testing.
What Is Instrumented Testing
Instrumented testing in Flutter is takes an app and instruments it to run in a separate zone, the unit tests against the already running app.
Let’s see what do we get to use:
1. integration testing via that package, source is here:
2. Unit Test wise it’s still the test package unit test API
3. Behavior Driven Development testing is via a gherkin cucumber package: