Flutter Integration Tests Gain Momentum

Alfred Schilken
8 min readJan 1, 2022

I’ve been working on a big Flutter project for half a year now. In this article I sum up my insights about integration tests at the end of 2021.

The Value of Integration Tests is still Underestimated

Video courses on YouTube or Udemy give only very simple examples — if at all. With books it’s the same. In my opinion, 95% of all courses and books are aimed at beginners. And beginners really do not need integration tests from the start. Unit tests and maybe widget tests are sufficient for small hobby projects.

The matter changes fundamentally if projects are to live longer. Then the effort is worth it, because:

  • The QA team is relieved of manual regression testing, which costs a lot of time, effort and frustration. Continous Integration can find broken navigation paths and any differences from previous versions.
  • A nightly build can disclose errors that would be undetected.
  • New team members can watch the running tests and see, what are the main paths of the app.

Why are they not appreciated?

  • Yes, integration tests often have “false failures”. The app got a new feature, a bug was fixed, an “unmockable” service was not available and all this causes…

--

--

Alfred Schilken

Software Developer for more than 35 years, started with C and C++, after Java, Python, Groovy, Lua, Golang and Swift now focussing on Dart and Flutter