Skip to main content

patrol_cli 5.0.0-dev.1 copy "patrol_cli: ^5.0.0-dev.1" to clipboard
patrol_cli: ^5.0.0-dev.1 copied to clipboard

Command-line tool for Patrol, a powerful Flutter-native UI testing framework.

5.0.0-dev.1 #

  • BREAKING CHANGE
    • Bump min Flutter SDK to 3.44.0 and Dart SDK to 3.12.0. Older Flutter versions keep resolving patrol_cli 4.x. See migration5.md. (#3323)
    • Build-time test discovery is now the default for patrol test and patrol build on Android and iOS, so native test names change to PatrolGeneratedTests_<file>/test_<name>. Pass --no-emit-test-manifest or set patrol.emit_test_manifest: false to keep runtime discovery. patrol develop keeps runtime discovery unless asked. Tests under integration_test/ fall back to runtime discovery with a warning, and an explicit --emit-test-manifest there fails the build. See migration5.md. (#3395)
    • On iOS, a RunnerUITests.m without the #include of the generated tests keeps runtime discovery with a warning that shows the lines to add (an explicit opt-in fails instead). Requires patrol 5.0. (#3395)
    • A RunnerUITests.m with the 4.7.0 PATROL_INTEGRATION_TEST_IOS_RUNNER_STATIC_BEGIN/_END macros fails in xcodebuild. Replace them with the snippet from migration5.md. (#3452)
    • With build-time discovery, runs in which tests didn't run fail instead of passing with Total: 0. A missing Android Patrol test class (MainActivityTest.java) stops the build, a run that executed fewer tests than discovered fails and lists them, and the app fails when it registers a test that discovery didn't find. Requires patrol 5.0. See migration5.md. (#3425)
    • --web-headless no longer takes a value: --web-headless=true and --web-headless false fail. Use --web-headless or --no-web-headless. Every command except patrol mcp now rejects leftover positional arguments instead of ignoring them. (#3452)
    • Remove --tags from patrol develop. It was accepted but never applied, so a session ran every test in the file. (#3382)
  • Migrate to the NativePlatform API of platform 3.2.0 and drop the <3.2.0 pin. platform 3.2.0 needs meta 1.18, which Flutter pins only from 3.44 on, hence the new minimum. (#3323)
  • Add patrol mcp (experimental), an MCP server shipped with the CLI that lets AI agents run tests in patrol develop sessions and read their results. It runs a test on Android, iOS or, when asked, in Chrome, hot restarts it on the next run, runs the whole suite with patrol test through its test tool, and takes screenshots and native trees. One server serves every project it is asked about, git worktrees included. It replaces the patrol_mcp package, so its dependencies no longer land in the app's pubspec (#3166). Run it as patrol mcp from a globally activated CLI or as dart run patrol_cli:main mcp from a dev dependency, with develop flags after --; PATROL_FLAGS is split as a shell would (#3026). See the docs, migrating off patrol_mcp included. (#3368, #3369, #3371, #3372, #3374)
  • patrol mcp results report why a test failed, the session's log file with the build's errors, a run that has gone quiet, a patrol version this CLI cannot drive and a project that pins another patrol_cli. A run that would hot restart a session whose flutter attach has exited is refused right away, with attach's exit code and stderr. (#3372, #3375)
  • Report patrol mcp tool calls to the CLI's anonymous analytics, under the same consent and PATROL_ANALYTICS_ENABLED switch: the tool, how it ended, how long it took, the device platform and how the CLI is installed. No paths, test names, errors or output are sent. (#3373)
  • Experimental patrol test support for Windows desktop (build + out-of-process automator sidecar), with Visual Studio 2022 or 2026. patrol develop on Windows is not supported yet. (#3183, #3459)
  • Detect and support both Android test layouts: the self-instrumenting :patrolTest module and the in-app :app androidTest source set. (#3280)
  • Support build-time test discovery on macOS: patrol build macos and patrol test -d macos use it by default, and patrol test-without-building --only runs on macOS. Like on iOS, a macos/RunnerUITests/RunnerUITests.m without the #include of the generated tests falls back to runtime discovery with a warning. A run that executes fewer tests than discovered fails, as on iOS. Requires patrol 5.0. (#3432)
  • Web keeps runtime test discovery: emit_test_manifest is ignored there, and --emit-test-manifest with patrol test -d chrome or patrol develop -d chrome prints a warning. (#3432)
  • Show why build-time discovery failed (the failing part of the host flutter test output) without --verbose. (#3395)
  • Add native screenshots on iOS, collected by patrol test from the .xcresult into <test-directory>/screenshots. Requires Xcode 16 or newer. See the docs. (#3271)
  • patrol develop -d chrome now uses a real Flutter hot restart instead of relaunching the browser and the Playwright driver on every r; one flutter run stays alive for the whole session, as on mobile. (#3040)
  • Web develop requires Flutter 3.47.0 or newer, and exits with an error below it. Older SDKs report a successful Hot Restart and keep serving the previous test bundle, so your edits would silently do nothing. Fixed by flutter/flutter#183838. (#3040)
  • Make the Patrol DevTools extension usable in web develop mode: with --open-devtools, patrol serves its own DevTools instance, since DevTools cannot discover extensions for a web app. Nothing extra is started without the flag. (#3040)
  • In web develop mode, only accept r once the app is up, queueing one pressed earlier, as develop already does on mobile. Hot restart outcomes are reported, an r that flutter run dropped is resent, and the run a hot restart tears down is no longer reported as a failure. (#3040)
  • Choose the Chrome debugging port up front with --web-browser-debug-port instead of scraping it out of flutter run --verbose, which is now passed only when patrol itself is verbose. (#3040)
  • Add patrol build web, which compiles the test app into a self-contained directory (app/ plus a copy of the Playwright runner) that runs on machines with neither Flutter nor a resolved pub cache. It refuses --profile and --release without --force: outside debug the semantics tree is gone and the tests pass without touching the app. (#3040)
  • patrol test-without-building --input <dir> runs that directory. Patrol serves the app itself, with the MIME types and cross-origin headers flutter run sends, and accepts the --web-* options that shape a run, so the same artifact can be sharded across machines. (#3040)
  • patrol test-without-building on Android now installs the androidTestUtil APKs (orchestrator, test-services) from the last patrol build android, so tools that write through TestStorage, such as allure-android, work on a fresh device. (#3427)
  • Look for a patrol test/patrol develop target in the project when the path names nothing from the directory the command was run in. A relative target still belongs to that directory first, which is how -t ../patrol_test/app_test.dart works from a subdirectory. (#3369)
  • When Chromium cannot be installed for web tests because the OS is newer than the Playwright bundled with patrol, the error now says to update patrol and, on Ubuntu, which PLAYWRIGHT_HOST_PLATFORM_OVERRIDE value works as a fallback. On an Ubuntu older than 20.04 it says the OS is too old instead. (#3401)
  • When Flutter exits before serving a web patrol test, the error ends with the last 30 lines of Flutter's stderr, compile errors included. (#3374)
  • Report a dead flutter attach or flutter logs in patrol develop. (#3234)
  • patrol develop stops waiting for the app's uninstall after 30 s when a session ends without q, for example when the device goes away. (#3370)
  • Fix the generated test bundle dropping the Dart entrypoint arguments passed by the native side of the app: main now takes them and passes them to tests as $.entrypointArgs. Needs patrol 5.0. (#3366)
  • Fix patrol develop leaving Gradle and logcat processes behind after quitting with q, and the test running on the Android device after Ctrl+C. (#3249)
  • patrol develop no longer leaves adb port forwards behind on Android devices when the session ends. (#3367)
  • Fix Ctrl+C during a web patrol test being ignored until the web app finished building, after which the run hung. It now stops the Flutter web server and exits at any phase of the run. (#3339)
  • Fix Ctrl+C during patrol develop -d chrome startup waiting out the web server timeout (120 s by default). The session now stops Flutter, the dependency install and the Playwright driver, together with the processes they spawned, at any point before it attaches. (#3453)
  • Fix a web develop session crashing out, leaving the terminal in raw mode and the Playwright driver orphaned, when flutter run died while the session was still starting up. (#3040)
  • Fix patrol develop failing to revert the terminal's interactive mode when stdin is already closed. (#3040)

4.10.0 #

  • Read coverage from runs with the test orchestrator's clearPackageData:true in patrol coverage pull: it merges the per-test runs that patrol 4.12.0 or newer writes on Android 12+, and no longer refuses those BrowserStack builds. A session that kept only the first test's run (older Android) still fails. (#3359)
  • Fix patrol develop --use-prebuilt-apks failing with flutter build bundle failed with code 64 on projects with a flavor and a fresh checkout (as on CI): --flavor is no longer passed to flutter build bundle, which has no such option. (#3297)

4.9.0 #

  • Add patrol coverage pull, which splits the JaCoCo .ec coverage of a patrol Android run into a standard jacoco.exec and a Dart patrol_lcov.info, merging duplicate records across tests and shards. --input <file or directory> reads local .ec files (e.g. emulator.wtf or Firebase Test Lab outputs), and --browserstack-build-id downloads them from BrowserStack. The Dart coverage comes from patrol 4.11.0 or newer. See the docs. (#3066)
  • Run a server on the host during iOS simulator runs, which the experimental $.platform.ios.setFoldPosture uses to fold a foldable simulator such as the iPhone Duo. Requires patrol 4.11.0 or newer. (#3336)
  • Allow equatable 3.x by widening the constraint to >=2.1.0 <4.0.0, and require patrol_log ^0.10.2, which allows it too. Resolution stays on 2.x until cli_completion supports 3.x. (#3322)
  • Fix idevicesyslog not being scoped to the device under test, so concurrent runs on a host with several real iOS devices attached all streamed the same device's log, corrupting the step display, --show-flutter-logs output and the test summary. (#3246)
  • Fix --flutter-command and PATROL_FLUTTER_COMMAND splitting quoted text on spaces, so a quoted Flutter path with spaces works. Add splitCommandLine to the public API. (#3315)
  • Fix patrol test on web timing out when the Flutter web server serves https (set up with web_dev_config.yaml): the server URL is now detected, and the readiness check accepts a self-signed certificate from that server. (#3314)

4.8.0 #

  • Build-time test discovery (experimental) now generates one native test class per Dart test file, which renames every generated native test — regenerate any saved shard lists, native test filters or dashboard mappings. Requires patrol 4.10.0 or newer. See the docs.
  • Add patrol build android --develop, which builds the APKs a develop session needs so they can be handed to another machine. (#3266)
  • Add patrol develop --use-prebuilt-apks <dir> (Android only), which runs a develop session against those APKs instead of building with Gradle. (#3266)
  • Add support for a test file path in --only, which runs the whole file.
  • Add native screenshots on Android, enabled with screenshot_on_failure in the pubspec's patrol section and collected by patrol test into <test-directory>/screenshots. Requires patrol 4.10.0 or newer. See the docs. (#3222)
  • Allow the latest package_config, cli_completion and pub_updater. (#3225)
  • Constrain platform below 3.2.0, which ships a non-backwards-compatible API. (#3288)
  • Report --only entries that match nothing instead of dropping them silently.
  • Report a RunnerUITests.m that disagrees with the build-time discovery setting, instead of failing the build on a missing .inc.
  • Fix patrolTargetPlatform reporting the host's platform during build-time discovery. (#3241)
  • Fix patrol develop ignoring build-time test discovery.
  • Fix looking for the .xctestrun file in the wrong place when building iOS tests from outside the project root. (#3250)
  • Fix hot restart dying on flavored patrol develop, which regressed in 4.6.1. (#3223)
  • Fix flavored iOS patrol develop losing logs on devices and failing on simulators. (#2465, #3279)
  • Fix patrol develop crashing on hosts whose terminal modes can't be changed. (#3278)

4.7.0 #

  • Requires patrol 4.9.0 or newer.
  • Pass -Ppatrol-enabled=true to Android Gradle builds so apps can detect a Patrol build.
  • Support running Patrol tests on multiple iOS simulators in parallel, by reading the native automation ports at runtime in the generated test bundle. See the Marathon integration guide.
  • Add experimental build-time test discovery, enabled with patrol.emit_test_manifest in pubspec.yaml (or --emit-test-manifest): Dart tests are discovered while building and each one becomes a real, individually-selectable native test, which makes per-test sharding on device farms possible. (#3197)
  • Add patrol test-without-building, which runs the tests from a previous patrol build without rebuilding, optionally just one of them with --only. Requires build-time test discovery. (#3197)
  • Add --record-video flag to patrol test and patrol develop to record a video per test case (Android and iOS simulators). (#2741)
  • Fix patrol test/patrol develop not reading logs from iOS simulators, by streaming the simulator's log via simctl spawn. (#3198)

4.6.1 #

  • Fix patrol develop printing "You must specify a --flavor option" on iOS/macOS projects with schemes, by passing the flavor to flutter attach.
  • Fail fast with a clear error instead of hanging on gradlew when the Android SDK can't be located (sdk.dir missing from android/local.properties after the config-only build). (#3168)

4.6.0 #

  • Download only Chromium instead of all default Playwright browsers during web runner setup. (#3156)
  • Fix patrol develop not reporting completion when the app shuts down before the tests finish, causing patrol_mcp to hang until its timeout. The backend exit is now detected independently of flutter attach.
  • Fix patrol test -d chrome failing with No devices attached on machines without a system Chrome installation. (#3172)
  • Add browser launch and context options for web tests: (#3155)
    • --web-channel
    • --web-executable-path
    • --web-slow-mo
    • --web-chromium-sandbox
    • --web-downloads-path
    • --web-ignore-default-args
    • --web-proxy
    • --web-browser-timeout
    • --web-traces-dir
    • --web-bypass-csp
    • --web-ignore-https-errors
    • --web-offline
    • --web-http-credentials
    • --web-extra-http-headers
    • --web-screenshot
    • --web-trace
    • --web-storage-state
    • --web-accept-downloads
  • Convert --web-headless to a flag. Use --web-headless/--no-web-headless instead of --web-headless true/false. The old syntax still works, but is deprecated and will be removed in a future release. (#3155)
  • Fix --web-* options being silently overridden by a same-named variable already set in the host shell environment when running web tests. (#3155)
  • Add patrol test --coverage support for the web platform, producing the same coverage/patrol_lcov.info report as mobile. Requires a debug build (the default); Chromium only.

4.5.1 #

  • Add a Swift Package Manager support note to the README.

4.5.0 #

  • Add -weak_framework XCTest linker flags to iOS and macOS build-for-testing to support Swift Package Manager integration.
  • Fix patrol develop on iOS Simulator timing out after ~6 minutes with "Test runner never began executing tests after launching". Requires a matching patrol version that enables the develop-specific native test runner path. (#3139)
  • Fix patrol test/patrol develop hanging on Windows at gradlew :app:dependencies by also draining the gradle process stderr stream during orchestrator-version detection. (#2565)
  • Fix --exclude not working. (#2990)
  • Fix --clear-permissions being ignored by patrol build ios. The flag was wired into patrol test but dropped from build ios, so prebuilt iOS test bundles (e.g. for BrowserStack/Firebase Test Lab) never had CLEAR_PERMISSIONS enabled.
  • Fix wrong import path being generated on Windows for commands like patrol test -t .\patrol_test\example_test.dart.
  • Fix test_bundle.dart generating a broken absolute import (and an invalid import alias containing characters such as -) when the test target lives outside the configured test_directory. The import is now computed relative to the bundle and the alias is sanitized. (#3104)
  • Don't listen for SIGTERM on Windows, where it is not supported and throws an unhandled SignalException. (#3035)
  • Bump equatable to ^2.1.0 and migrate PatrolPubspecConfig and related config classes from deprecated EquatableMixin to with Equatable.
  • Bump patrol_log to ^0.10.0.

This version requires version 4.7.0 of patrol package.

4.4.0 #

  • Fix iOS Simulator test crash on Xcode 26.4+ caused by missing platform frameworks path in xctestrun.
  • Bump patrol_log to ^0.9.0.
  • Add --app-name flag to override app_name from pubspec.yaml. (#2557)
  • Fix patrol test --coverage crashing with PathNotFoundException in Pub workspaces by resolving .dart_tool/package_config.json from the workspace root. (#2844)
  • Add --coverage-workspace flag to include every package declared under the workspace root's workspace: key in the coverage report.
  • Fix a bug when running tests with iOS and Android specific flavors based on the configuration in pubspec. (#3046)

4.3.1 #

  • Update dependencies.

4.3.0 #

  • Bump patrol_log to ^0.8.0.
  • Refactor develop command into reusable components and expose public API for programmatic usage.
  • Reflect failed tests in Playwright report. (#2970)

4.2.0 #

  • Add support for --web-port option to specify the port for the web server when running web tests with patrol test. (#2832)
  • Add --web-server-timeout flag to configure the web server startup timeout (default: 120s). (#2948)
  • Fix running devtools after moving test to patrol_test/. (#2922)
  • Fix listen to stdout/stderr streams in buildApkConfigOnly to prevent hang on Windows. (#2905)
  • Fix bug that --exclude was not working for directories. (#2918)
  • Allow to pass additional web browser args through web-browser-args. (#2932)
  • Correctly compose devtools link on new Flutter version. (#2957)

4.1.0 #

  • Fix bug when running web tests with relative imports from integration_test directory. (#2906)
  • Fix a bug when user set a nested test_directory (eg. test/e2e), TestFinder was searching for test files in parent directory instead of project's root. (#2858)
  • Add support for --no-tree-shake-icons flag in cli commands. (#2704)
  • Fix PATROL_FLUTTER_COMMAND not being used when building web app. (#2857)
  • Remove unused import in test_bundle.dart files. (#2885)
  • Bump patrol_log to 0.7.0. (#2917)

4.0.2 #

  • Remove platform_automator.dart import from test_bundler.dart. (#2833)

4.0.1 #

  • Fix running web tests on Flutter 3.38.x. (#2828)

4.0.0 #

Patrol 4.0 is here!

Read the article announcing Patrol 4.0 here.

  • Add support for running Patrol tests on Web:

    • Introduce support for web-related flags:
      • --web-results-dir, --web-report-dir, --web-reporter,
      • --web-timeout, --web-global-timeout, --web-retries,
      • --web-workers, --web-shard,
      • --web-video, --web-headless,
      • --web-locale, --web-timezone, --web-color-scheme,
      • --web-geolocation, --web-permissions,
      • --web-user-agent, --web-viewport.
  • Add support for configurable test directory via test_directory option in pubspec.yaml. (#2728)

  • Introduces experimental --full-isolation flag that uninstall the app between each run on iOS Simulator.

  • Bump patrol_log to 0.6.0.

  • Read Patrol version from pubspec.lock instead of pubspec.yaml for compatibility checks. Fix edge cases for compatibility checks. (#2709)

  • BREAKING CHANGE

    • Change default test directory from integration_test to patrol_test. (#2728)

This version requires version 4.0.0 of patrol package.

3.11.0 #

  • Add --build-name and --build-number flags to patrol test, patrol develop, and patrol build commands. (#2590)
  • Fix report path generation for Android. (#2724)
  • Fix issue that sometimes logs causes test crashes. (#2742)
  • Add support for interactive device selection when running patrol. (#2722)
  • Fix PATROL_FLUTTER_COMMAND not being used when using --coverage flag. (#2781)

This version requires version 3.20.0 of patrol package.

3.10.0 #

  • Add help command h to patrol develop. (#2701)
  • Add printing paths to the APKs after patrol build command. (#2685)

3.9.0 #

  • Re-land: Do not pass flavor as dart-define when building. (#2636)
  • Wait for generating gradlew - fix race condition (#2678)
  • Bump leancode_lint to 17.0.0.
  • Bump patrol_log to 0.5.0.
  • Bump minimum Dart SDK to version 3.8.0.

3.8.0 #

  • Remove --wait argument from patrol develop command (#2671 & #2691)
  • Add support for comments in .patrol.env files. (#2653)
  • Skip update check when the patrol_cli binary is triggered for shell completion only (#2512)
  • Revert: Do not pass flavor as dart-define when building. (#2636)

3.7.0 #

  • Bump min Flutter SDK to 3.32.0 (#2649)
  • Introduce check-compatibility flag to allow disabling the compatibility check. (#2649)

3.6.0 #

  • Improve patrol test error messaging when compatibility check fails, added same compatibility check and error messaging to patrol build command (#2597)
  • Improve patrol update messaging by showing incompatibility warning when applicable, sharing compatibility table (#2579)
  • Add ability to quit the patrol develop process by pressing q on the keyboard (#2577)
  • Fix issue with reading logs on iOS devices in release. (#2569)
  • Add --ios flag to patrol test that specifies the iOS version to use. (#2540)
  • Bump custom_lint to 0.7.0 and leancode_lint to 14.3.0. (#2574)
  • Display the name of the default device instead of its ID. (#2581)
  • Do not pass flavor as dart-define when building. (#2636)
  • Bump vm_service dependency to 15.0.0 (#2636)

3.5.1 #

  • Gracefully handle when analytics fail to send. (#2460)
  • Handle uninstallation of the app after tests finish when using AGP 8.2+. (#2535)
  • Add --coverage-packages flag to patrol test that specifies which packages should be included in the coverage report. (#2536)
  • Fix skipping tests with coverage collection enabled. (#2539)

3.5.0 #

  • Add PATROL_ANALYTICS_ENABLED environment variable to disable analytics. (#2483)
  • Enable analytics by default. (#2483)

3.4.1 #

  • Add android product flavor to dart-define. (#2425)
  • Detect and warn about Orchestrator 1.5.0. (#2437)

3.4.0 #

  • Add support for the patrol_log package. (#2387)

This version requires version 3.13.0 of patrol package.

3.3.0 #

  • Add clear-permissions flag on ios commands. (#2367)

This version requires version 3.12.0 of patrol package.

3.2.1 #

  • Allow running Patrol tests from any subfolder of the project (#2351)
  • Bump min Flutter SDK to 3.24.0 and Dart SDK to 3.5.0 (#2371)

3.2.0 #

  • Add code coverage collection support (#2294)

This version requires version 3.11.0 of patrol package.

3.1.1 #

  • Fix checking java version. (#2301)
  • Change selecting java path. (#2300)

3.1.0 #

  • Add tags and exclude-tags. (#2286)
  • Run flutter build apk --config-only during android build.(#2293)

This version requires version 3.10.0 of patrol package.

3.0.1 #

  • Fallback to read java version from JAVA_HOME when flutter doctor doesn't print any.

3.0.0 #

  • Breaking: Use java version from flutter doctor

2.8.1 #

  • Fix parsing non string values from --dart-define-from-file (#2243).

2.8.0 #

  • Add support for --dart-define-from-file (#2232).

2.7.0 #

  • Add support for custom flutter commands (#2124).

2.6.5 #

  • Add support for --app-server-port and --test-server-port on Android (#2154).

2.6.4 #

  • Fix compatibility_checker getting stuck (#2091).

2.6.3 #

  • Fix invalid JSON output of version check command (#2087).

2.6.2 #

  • Print link to devtools regardless of open-devtools flag (#2076).

2.6.1 #

  • Fix passing port on iOS when patrol build is executed (#2061).

2.6.0 #

  • Allow for changing the port when running on iOS (#2027).

    To do so, pass test-server-port (default 8081) and app-server-port (default 8082) to Patrol CLI commands (e.g patrol test)

  • Do not open devtools by default when patrol develop is executed (#2048).

This version requires version 3.4.0 of patrol package.

2.5.0 #

  • Allow for defining a custom test file suffix (#2009)
  • Fix opening devtools on Windows (#2011)

2.4.0 #

  • Add support for running patrol tests on macOS (alpha) (#1847)
  • Set --destination-timeout 1 when calling xcodebuild test-without-building to fail faster in error conditions (#1979)
  • Set --only-testing RunnerUITests/RunnerUITests to ignore other XCTest that might be present (#1991)

2.3.1+1 #

  • Add screenshots to pubspec.yaml (#1917)

2.3.1 #

  • Bump dependencies for Flutter 3.16 and Dart 3.2
  • Populate topics in pubspec (#1904)
  • Remove warning about patrol_finders being split from patrol
  • Allow to disable autogenerating shell completion code in ~/.zshrc (and alike) by setting the PATROL_NO_COMPLETION environment variable

2.3.0 #

  • Add support for Patrol 3.0 and its DevTools extension (#1829)
    • Automatically open DevTools when running patrol develop. This behavior can be disabled by passing --no-open-devtools flag.

This version requires version 3.0.0 of patrol package.

2.2.2 #

  • Fix parsing --dart-defines when a value contains a comma (#1845)

2.2.1 #

  • Fix bug with test_bundle.dart being sometimes garbled on Windows (#1797)

2.2.0 #

  • Add support for group() (#1634)
  • Adjust generated test_bundle.dart to not depend on gRPC contracts (#1681)

This version requires version 2.3.0 of patrol package.

2.1.5 #

  • Remove notice about migrating to Patrol 2.0 (#1738)

2.1.4 #

  • Uninstall RunnerUITests app on iOS when flavor is present (#1694)

2.1.3 #

  • Add migration message due to release of patrol_finders

2.1.2 #

  • Fix .xctestrun file not being found when the RunnerUITests targe uses XCTestPlans (#1636)

2.1.1 #

  • Change the location of iOS test reports to build/ios_results with timestamp appended. The path to the report is printed after patrol test exits (#1623)

2.1.0 #

  • Add --no-generate-bundle flag (#1565)
  • Don't check for patrol_cli updates on CI (#1557)

2.0.4 #

  • Fix crashes on some older Android versions when speculative adb uninstall is called (#1529)

2.0.3 #

  • Uninstall the app before patrol test and patrol develop, in addition to uninstalling them after tests finish (#1500)

2.0.2 #

  • Fix --release not working when building/running on Android (#1484)

2.0.1 #

  • Support for fix for WebViews on modern Android versions (#1398)
  • Implement a proper fix for tests failing when using native automation on Android + Flutter 3.10 (#1398). This replaces a workaround implemented in #1352.

This version requires version 2.0.1 of patrol package.

2.0.0 #

Patrol 2.0 is released!

  • Read the changelog and migration guide here
  • Read the article about how Patrol 2.0 fixes the integration_test plugin here

This version requires version 2.0.0 of patrol package.

1.1.11 #

  • Deprecate running test on many devices simultaneously (#1318)

1.1.10 #

  • Fix dart pub global activate patrol_cli failing because of transitive dependency not following semver (#1290)

1.1.9 #

  • Add support for Flutter 3.10 (#1254)
  • Fix crashes on Windows (#1255)

1.1.8 #

  • Fix analytics being always enabled (#1246)

1.1.7 #

  • Fix patrol develop not attaching to the app on the other-than-first attached device (#1210)

1.1.6 #

  • Default to "Yes" when asking for telemetry (#1201)

1.1.5 #

  • Don't ask to collect analytics if running on CI (#1197)

1.1.4 #

This version requires version 1.0.9 of the patrol package

  • Add optional telemetry (#1157), (#1182)
  • Rewrite native test reporting (#1178)

1.1.3 #

  • Add --exclude flag to patrol test (#1137)

1.1.2 #

  • Fix patrol test/patrol develop being stuck after tests finish if adb executable is not in $PATH. Now an error is thrown (#1119)

1.1.1 #

  • Fix bug when running on iOS (.xctestrun file couldn't be found) (#1111)
  • Make patrol develop command visible (#1104)

1.1.0 #

  • Automatically infer iOS-specific build options: scheme and configuration (#1090). The following options were removed from patrol test and patrol develop commands: --scheme, --xcconfig, --configuration
  • Add patrol build android and patrol build ios commands (#1097)

1.0.10 #

  • Fix error when scheme name is not Runner (#1076)

1.0.9 #

  • Fix "error while disposing" when SIGINT (CTRL+C) is received when waiting for app to start on physical iOS device (#1073)
  • Fix patrol build crashing (#1074)

1.0.8 #

  • Disable forwarding q from patrol develop to flutter attach because it's broken (#1069)
  • Improve error when patrol develop is missing --target option (#1064)

1.0.7 #

  • Fix disposing error when SIGINT (CTRL+C) is sent during patrol develop (#1057)

1.0.6 #

  • Add patrol develop command which supports Hot Restart (#1057). It's not stable, but you can already try it out and report bugs.

1.0.5 #

  • Add patrol build command to make it easier to build app binaries for cloud device farms (#1006). It's not stable, but you can already try it out and report bugs. Also, for now it only builds Android APKs.

1.0.4 #

  • Make it possible to run x86-only iOS apps on the Simulator (#1005)
  • Make it possible to define flavor per OS in patrol in pubspec.yaml
  • Generate CLI completion in $XDG_USER_HOME instead of $HOME (#1002)

1.0.3 #

  • Add --no-uninstall flag, which lets you not uninstall the apps after the tests finish (#983)

1.0.2 #

  • Make output of patrol test much less verbose when test fails on Android. (#964)

    Run with --verbose to still see all the logs that were previously visible.

1.0.1+1 #

  • Fix publish workflow (#955) (#956)

1.0.1 #

  • Add shell completion (#950)
  • Use automated publishing with GitHub Actions on pub.dev (#953)

1.0.0 #

0.9.4 #

  • patrol test: Improve how external tool invocations are logged when running with --verbose (#906)
  • patrol test: Fix .xctrunner app not being uninstalled after tests finish on iOS Simulator (#907)

0.9.3 #

  • Add support for flavor in Patrol configuration block in pubspec.yaml (#892)
  • Fix patrol test not propagating PATROL_VERBOSE (activated with --verbose flag) to the Flutter side (#892)

0.9.2 #

  • Fix patrol test broken on Windows when running tests on Android (#889)

0.9.1 #

  • Improve error message of patrol test when the integration_test directory doesn't exist (#876)
  • Make patrol test run tests in a more predictable, ls-like order (#882)
  • Fix patrol test incorrectly encoding --dart-define when running on Android (#885)
  • Display name of currently running test file in top-left corner (#885)

0.9.0 #

  • Enable patrol test for physical iOS devices (#863)

  • Make it possible to specify package_name and bundle_id in pubspec.yaml (#868)

    If these values are set, the tool automatically uninstalls the app after every test. It's recommended to set them.

    Example:

    dependencies:
      # ...
    
    dev_dependencies:
      # ...
    
    patrol:
      android:
        package_name: pl.leancode.awesomeapp
        app_name: Awesome App
      ios:
        bundle_id: pl.leancode.AwesomeApp
        app_name: Awesome App
    

0.8.6 #

  • Uninstall app under test after patrol test (#848)

    This currently requires package name (on Android) and bundle identifier (on iOS) to be passed through respective arguments to patrol test. Soon it'll also be possible to define these values in `pubspec.yaml.

  • Print helpful links when called without arguments (#865)

  • Fix verbose output from Gradle having garbled newlines (#858)

0.8.5 #

  • Add a deprecation warning to patrol drive command (#833)

    Use the new patrol test command. See setup instructions.

0.8.4 #

  • When using patrol test, infer --configuration from --flavor when possible (#796)

  • Fix patrol test on Windows (#805)

0.8.3 #

  • Make patrol test more configurable (#791)

0.8.2+1 #

  • Fix typo in changelog (#783)

0.8.2 #

  • Add patrol test command (#731)

    patrol test runs tests natively (using Gradle on Android and xcodebuild on iOS). This command is hidden from patrol --help for now until we're sure it has the same features patrol drive, but you can already use it. In a future release, patrol drive will be deprecated, and in 1.0, patrol drive will be removed in favor of patrol test.

    Learn more here about why we're deprecating patrol drive.

    Learn more here about how to setup your project to use patrol test.

0.8.1 #

  • Add --label/--no-label flag to patrol drive, that displays the test name over the running app, making it easier to identify which test is currently running (#701)

0.8.0 #

  • Add support for Patrol Next (#646, #671)

0.7.17 #

  • Add support for NativeAutomator.swipe() (#669)

0.7.16 #

  • Add support for --use-application-binary argument for patrol drive (#667)

0.7.15 #

  • Update bootstrap command to generate code working with patrol v0.9.0 (#665)
  • Display short name instead of UUID in test results when running on iPhone (#664)

0.7.14 #

  • AutomatorServer:
    • Add 1 second delay after performing permission action on Android (#647)

0.7.13 #

  • Improve output (#644)

0.7.12 #

  • AutomatorServer:
    • Migrate gRPC server from Netty to OkHttp (#642)

0.7.11 #

  • Print status of test runs after patrol drive finishes (#624)

0.7.10 #

  • Print error message when screenshot fails on host side (#625)
  • Perform internal refactoring to make testing the CLI easier (#626)

0.7.9 #

  • Fix running tests that failed to build (#615)
  • Fix rare crashes on slower machines caused by activity service not running on Android emulator (#615)

0.7.8 #

  • Add support for patrolIntegrationDriver (#593)
  • Remove port forwarding, which wasn't needed for some time (#597, #603)

0.7.7+1 #

  • Fix --dart-defines being malformed (#589)

0.7.7 #

  • Add support for optional .patrol.env file where --dart-defines can be stored to avoid typing them manually in patrol drive invocations (#585)

0.7.6+2 #

  • Fix crashing on Windows (#586)
  • Fix bug with tests running n^2 times instead of n times (#580)

0.7.6+1 #

  • Fix crashing on Windows (#574)

0.7.6 #

  • Add --repeat argument to patrol drive, which makes flake detection easier (#552)

0.7.5 #

  • Reenable terminal animations (#521)
  • Fix infinite wait when more than 2 Android devices are connected (#553)

0.7.4+1 #

  • Fix patrol doctor crashing on Windows (#546)

0.7.4 #

  • Print more useful info in patrol doctor (#541)
  • Accept both device name and device ID for the --device argument to patrol drive (#537)
  • Wait for the package service to become active on Android before installing apk (#539, #540)

0.7.3+1 #

  • Disable terminal animations to fix logs on the CI (#498)

0.7.3 #

  • AutomatorServer:
    • Improve reliability of native interactions on iOS (#489)
    • Set minimum iOS version to 14.0 (#496)

0.7.2+1 #

  • Fix too aggressive logging when downloading artifacts (#484)

0.7.2 #

  • Make --target flag accept directories (#473)
  • Use prebuilt artifacts when running on iOS Simulator (#465)
  • Automatically download new artifacts during patrol update (#465)

0.7.1+3 #

  • Minimize iOS artifact size (#469)

0.7.1+2 #

  • Prebuild iOS artifacts for iPhones (#454)

0.7.1+1 #

  • Add version to prebuild iOS artifacts (#460)

0.7.1 #

  • Fix occasional crashes caused by Flutter's version prompt (#456)

0.7.0+1 #

  • Build iOS artifacts on CI (#452, #452)

0.7.0 #

In this release, we've focused on stability, reliability, and reducing flakiness.

  • AutomatorServer:
    • Add timeouts when interacting with native UI (#437)
    • Implement isPermissionDialogVisible() method (#448)
    • Fix entering text into SecureTextField on iOS (#446)

0.6.15 #

  • Fix trying to run on all attached devices (instead of only the first one) when no device is specified (#442)

0.6.14 #

  • AutomatorServer:
    • Further improve error messages occuring on the native side (#429)

0.6.13 #

  • AutomatorServer:
    • Print more info about errors occuring on the native side (#414)

0.6.12 #

  • AutomatorServer:
    • Fix denyPermission() not working on iOS (#413)

0.6.11 #

  • Improve stability (#397)
  • AutomatorServer:
    • Rename getNativeWidgets() to getNativeViews() (#399)
    • Add tapOnNotificationByIndex(), tapOnNotificationBySelector(), and closeHeadsUpNotification() on iOS (#398)

0.6.10 #

  • Fix artifacts being downloaded on every run on Linux and Windows (#392)
  • Fix a small typo during patrol drive (#391)
  • AutomatorServer:
    • Fix getNativeWidgets() crashing on Android (#393)

0.6.9 #

  • AutomatorServer:
    • Fix handling permission prompts now working in some edge cases (#383)

0.6.8 #

  • Improve update prompt (#377)
  • AutomatorServer:
    • Remove remaining Objective-C code (#374)

0.6.7 #

  • AutomatorServer:
    • Implement enabling and disabling cellular on iOS (#371)
    • Fix crash with trying to use non-existent AutomatorServer.xcworkspace when running tests on iOS (#371)

0.6.6+2 #

  • Build iOS test runner artifact in GitHub Actions (#362)

0.6.6+1 #

  • Download artifacts from GitHub Releases insted of LeanCode's Azure Storage (#363)

0.6.6 #

  • Release updated AutomatorServers (#338)

0.6.5 #

  • Fix --targets argument to patrol drive (#330)

0.6.4 #

  • Add the targets alias for target option for patrol drive (#314)
  • Add the devices alias for device option for patrol drive (#314)
  • Add the dart-defines alias for dart-define option for patrol drive (#314)
  • Remove support for the patrol.toml config file (#313)

0.6.3 #

  • Don't require host and port to be defined in patrol.toml or passed in as command-line arguments (#301)
  • Print cleaner, more readable logs when native action fails (#295)

0.6.2 #

  • Restart flutter drive on connection failure (#280)
  • Rename --devices to --device to be more consistent (#280)
  • Populate homepage field in pubspec.yaml (#254)

0.6.1 #

  • Fix handling native permissions on older Android API levels (#260)

0.6.0+1 #

  • Fix URL of artifact storage (#259)

0.6.0 #

  • Rename to patrol_cli (#258)

0.5.3 #

  • Add new --wait argument which accepts the number of seconds to wait after the test finishes (#251)
  • Make maestro drive run all tests (#253)

0.5.2 #

  • Migrate iOS AutomatorServer to a more stable HTTP server, which doesn't crash randomly (#220)
  • Add new packageName and bundleId fields to maestro.toml
  • Add new arguments to the tool: --package-name and --bundle-id

0.5.1 #

  • Add support for handling native permission requests on Android (#232)
  • Fix Android AutomatorServer suppressing all accessibility services (#235)

0.5.0 #

  • Now maestro_cli will clean up after itself, either when it exits normally or is stopped by the user (#209):
    • port forwarding is automatically stopped
    • artifacts are automatically uninstalled
  • pod install is automatically run when iOS artifacts are downloaded (macOS only) (#206)

0.4.4+3 #

  • Fix not working on Windows because of flutter command not being found

0.4.4+2 #

  • Fix problem with project not building because of a breaking change in package:mason_logger dependency

0.4.4+1 #

  • Fix issue with CI

0.4.4 #

  • Add support for physical iOS devices

0.4.3 #

  • Fix bug with APKs failing to force install when certificates don't match, this time once and for all

0.4.2 #

  • Fix bug with APKs failing to force install when certificates don't match

0.4.1 #

  • Rename MAESTRO_ARTIFACT_PATH environment variable to MAESTRO_CACHE
  • Add maestro devices command
  • Some work made under the hood to enable support for iOS

0.4.0 #

0.3.5 #

  • Fix dependency resolution problem

0.3.4 #

  • Improve output of maestro drive

0.3.3 #

  • Fix a crash which occured when ADB daemon was not initialized

0.3.2 #

  • Fix a crash which occured when ADB daemon was not initialized
  • Make it possible to add --dart-defines in maestro.toml
  • Fix templates generated by maestro bootstrap

0.3.1 #

  • Automatically inform about new version when it is available
  • Add maestro update command to easily update the package

0.3.0 #

0.2.0 #

0.1.5 #

  • Allow for running on many devices simultaneously
  • A usual portion of smaller improvements and bug fixes

0.1.4 #

  • Be more noisy when an error occurs
  • Change waiting timeout for native widgets from 10s to 2s

0.1.3 #

  • Fix a bug which made flavor option required
  • Add --debug flag to maestro drive, which allows to use default, non-versioned artifacts from $MAESTRO_ARTIFACT_PATH

0.1.2 #

  • Fix typo in generated integration_test/app_test.dart
  • Depend on package:adb

0.1.1 #

  • Set minimum Dart version to 2.16.
  • Fix links to package:leancode_lint in README

0.1.0 #

  • Add --template option for maestro bootstrap
  • Add --flavor options for maestro drive
  • Rename maestro config to maestro doctor

0.0.9 #

  • Add --device option for maestro drive, which allows you to specify the device to use. Devices can be obtained using adb devices

0.0.8 #

  • Fix maestro drive on Windows crashing with ProcessException

0.0.7 #

  • Fix a few bugs

0.0.6 #

  • Fix maestro bootstrap on Windows crashing with ProcessException

0.0.5 #

  • Make versions match AutomatorServer

0.0.4 #

  • Nothing

0.0.3 #

  • Add support for maestro.toml config file

0.0.2 #

  • Split maestro and maestro_cli into separate packages
  • Add basic, working command line interface with

0.0.1 #

  • Initial version