autopilot
0.5.0, released 2 weeks ago by an unverified publisher
A test driver for Flutter that exposes a JSON HTTP API for QA testing.
What it does
Runs an HTTP server inside the Flutter app to expose a JSON API for UI automation tests, allowing tests to be written in any language without sharing the app source code. It also includes an MCP endpoint for AI agents to drive the app.
AI-written summary of version 0.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to run UI tests for a Flutter app written in programming languages other than Dart.
- You want to allow QA testing or AI agents to drive your app without sharing its source code.
- You are building test builds and need HTTP-based widget inspection and interaction.
Skip it when
- You are writing standard Dart unit, widget, or integration tests using flutter_test.
- You need authentication on the testing endpoints in production builds.
Strengths
- Enables testing Flutter apps in any language via an HTTP server API.
- Includes support for an MCP endpoint so AI agents can drive the app.
- Provides extensive endpoints for interacting with widgets, text, scrolls, and taking screenshots.
Weaknesses
- The API and endpoints have no authentication, so it should only be included in test builds.
- Requires running the app with specific target files and port forwarding on Android.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Wrap your root widget with Autopilot in a separate test entrypoint, run the app on release or debug, and forward ports if using Android.
import 'package:flutter/material.dart';
import 'package:autopilot/autopilot.dart';
import 'my_app.dart';
void main() {
runApp(
Autopilot(child: MyApp())
);
}Alternatives
Packages that do the same job and could replace autopilot.
- patrol_log
Log package for Patrol, a Flutter-native UI testing framework
87Compare - flame_test
Classes and helpers for testing applications built with the Flame Engine.
80Compare - fluttersdk_dusk
Flutter E2E test driver for LLM agents and CLI via VM Service extensions without a test harness.
77Compare - test
A full featured library for writing and running Dart tests across platforms.
90Compare