Help Instance Help

App Testing

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

Unit Testing

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.

Run the unit-test

flutter test

More information: Unit Tests

Integration Testing

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.

Run the integration-test

flutter test integration_test

More information: Integration Tests

Last modified: 10 December 2023