flutter_probe_agent 0.5.1 copy "flutter_probe_agent: ^0.5.1" to clipboard
flutter_probe_agent: ^0.5.1 copied to clipboard

On-device E2E test agent for FlutterProbe. Embeds in your Flutter app and receives test commands via WebSocket or HTTP from the probe CLI. Write tests in plain English, execute with sub-50ms widget-tr [...]

FlutterProbe Agent #

On-device E2E test agent for FlutterProbe. Embeds in your Flutter app and receives test commands from the probe CLI via WebSocket or HTTP.

pub package Publisher

What is FlutterProbe? #

FlutterProbe lets you write E2E tests in plain English:

test "user can log in"
  tap "Email"
  type "user@test.com" into "Email"
  tap "Password"
  type "secret123" into "Password"
  tap "Sign In"
  wait until "Dashboard" appears
  see "Welcome"

Tests execute with sub-50ms command round-trips via direct widget-tree access — no UI automation layer, no WebDriver, no accessibility bridge.

Installation #

Add to your pubspec.yaml:

dev_dependencies:
  flutter_probe_agent: ^0.5.1

Setup #

Initialize the agent in your app's main.dart:

import 'package:flutter_probe_agent/flutter_probe_agent.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  const probeEnabled = bool.fromEnvironment('PROBE_AGENT', defaultValue: false);
  if (probeEnabled) {
    await ProbeAgent.start();
  }

  runApp(const MyApp());
}

Build with the agent enabled:

flutter run --dart-define=PROBE_AGENT=true

The agent is completely inactive unless PROBE_AGENT=true is passed at build time. It adds zero overhead to your production app.

Physical Device Testing #

For physical iOS devices, WiFi testing is recommended:

# Build with WiFi enabled
flutter build ios --profile \
  --dart-define=PROBE_AGENT=true \
  --dart-define=PROBE_WIFI=true

# Run tests over WiFi
probe test tests/ --host <device-ip> --token <probe-token>

Features #

  • WebSocket + HTTP transports — persistent connection for simulators, stateless HTTP for physical devices
  • Profile mode support — works on physical iOS devices (not just debug)
  • Release mode safeguards — blocked by default, opt-in with allowReleaseBuild: true
  • Ping/pong keepalive — prevents idle connection drops
  • WiFi testing — bind to 0.0.0.0 with PROBE_WIFI=true for cable-free testing
  • Pre-shared restart tokenrestart the app works over WiFi without USB log reading

Documentation #

Requirements #

License #

Business Source License 1.1

Publisher #

Built by Alpha Wave Systems in Guadalajara, Mexico.

0
likes
0
points
278
downloads

Publisher

verified publisheralphawavesystems.com

Weekly Downloads

On-device E2E test agent for FlutterProbe. Embeds in your Flutter app and receives test commands via WebSocket or HTTP from the probe CLI. Write tests in plain English, execute with sub-50ms widget-tree access.

Homepage
Repository (GitHub)
View/report issues

Topics

#testing #e2e #flutter #automation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_probe_agent