Skip to content

Quick Start

This guide walks you through writing and running your first FlutterProbe test. It assumes you have already installed the CLI and integrated the Dart agent.

Create a file tests/smoke/login.probe:

test "user can log in"
@smoke
open the app
wait until "Sign In" appears
tap "Sign In"
type "user@example.com" into "Email"
type "secret123" into "Password"
tap "Continue"
see "Dashboard"

Before running, lint the file to catch syntax errors:

Terminal window
probe lint tests/smoke/login.probe

Make sure your app is running on a device or simulator with ProbeAgent enabled, then:

Terminal window
probe test tests/smoke/login.probe --device <UDID-or-serial> -v

Flags:

  • -v enables verbose output
  • --device targets a specific device (use probe device list to find available devices)
  • -y auto-confirms destructive operations and auto-grants permissions
Terminal window
probe test tests/ --device <UDID-or-serial> --timeout 60s -v -y
Terminal window
probe test tests/ --tag smoke
Terminal window
# JSON output (for HTML report)
probe test tests/ --format json -o reports/results.json --video
# Generate HTML report
probe report --input reports/results.json -o reports/report.html --open
# JUnit XML (for CI)
probe test tests/ --format junit -o reports/results.xml

Re-run tests automatically when .probe files change:

Terminal window
probe test tests/ --watch