Flutter Project with integration test example.
Setup integration test
Add dependency in pubspec.yml
Create “integration_test” directory if not present.
Initialize singleton service inside the test file inside main()
- Use widgetTester to interact and test
Connect a device or use Emulator/Simulator
To run a single test file
flutter test integration_test\file_name.dart
- To run all the test files
flutter test integration_test
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.