Testing Flutter apps

Unit tests

Widget tests

Integration tests

Continuous integration services

The more features your app has, the harder it is to test manually.
Automated tests help ensure that your app performs correctly before
you publish it, while retaining your feature and bug fix velocity.

Note:
  For hands-on practice of testing Flutter apps, see the
  How to test a Flutter app codelab.

Automated testing falls into a few categories:

A unit test tests a single function, method, or class.

A widget test (in other UI frameworks referred to
as component test) tests a single widget.

An integration test
tests a complete app or a large part of an app.