A Sample app that shows different types of testing in Flutter.
This particular sample uses the Provider package but any other state management approach would do.
Show how to perform:
- Widget Testing [Coming soon],
Flutter Driver(Integration) Testing,- Flutter Integration Test [Coming soon]
- Performance Testing [Coming soon]
- State Management Testing using the Provider package.
- Unit Testing using the [mockito][] package.
- Navigate to the project's root folder using command line and follow the instructions below.
The Flutter SDK can run unit tests and widget tests in a virtual machine, without the need of a physical device or emulator.
- To run all the test files in the
test/
directory in one go, runflutter test
. - To run a particular test file, run
flutter test test/<file_path>
If you have a general question about testing in Flutter, the best places to go are:
If you run into an issue with the sample itself, please file an issue.