Skip to content

App Testing

Flutter supports out of the box two different ways to ensure quality of the software.

Unit testing are handy for verifying the behavior of a single function, method, or class. The test package provides the core framework for writing unit tests, and the flutter_test package provides additional utilities for testing widgets.

Terminal window
flutter test

More information: Unit Tests

There are three types of tests that Flutter supports. A unit test verifies the behavior of a method or class. A widget test verifies the behavior of Flutter widgets without running the app itself. An integration test (also called end-to-end testing or GUI testing) runs the full app.

Terminal window
flutter test integration_test

More information: Integration Tests