flutter_test_robots
1.2.0, released 5 months ago by flutterbountyhunters.com
Flutter test tools and extensions to simulate human-computer interactions.
What it does
Provides WidgetTester extensions to easily simulate keyboard shortcuts, hardware keyboard text input, IME text input, and popular mobile device viewports in Flutter tests.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to simulate human keyboard shortcuts and text input easily in widget tests.
- You need to test your Flutter app layout across multiple popular mobile device viewports.
Skip it when
- You are not writing Flutter widget or integration tests.
Strengths
- Adds many convenient shortcut methods for WidgetTester.
- Supports both hardware keyboard and IME text input simulation.
- Includes built-in configurations for popular mobile devices like the iPhone 16 Pro Max.
Weaknesses
- Limited to test environments only.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add flutter_test_robots to dev_dependencies in pubspec.yaml.
void main() {
testWidgets("easy shortcuts", (tester) async {
await tester.pressEnter();
await tester.typeKeyboardText("Hello, world!");
});
}Alternatives
Packages that do the same job and could replace flutter_test_robots.
- fluttersdk_dusk
Flutter E2E test driver for LLM agents and CLI via VM Service extensions without a test harness.
77Compare - patrol
Multiplatform E2E UI testing framework for Flutter
89Compare - patrol_cli
Command-line tool to run and debug Patrol UI tests on multiple platforms
89Compare - test_rocket
A command-line tool to execute Dart and Flutter tests at high speed.
77Compare