App Testing
Flutter supports out of the box two different ways to ensure quality of the software.
Unit Testing
Section titled “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
Section titled “Run the unit-test”flutter testMore information: Unit Tests
Integration Testing
Section titled “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
Section titled “Run the integration-test”flutter test integration_testMore information: Integration Tests
© m8ty GmbH 2023 · m8ty.eu
