patrol_cli 5.0.0-dev.1
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 testandpatrol buildon Android and iOS, so native test names change toPatrolGeneratedTests_<file>/test_<name>. Pass--no-emit-test-manifestor setpatrol.emit_test_manifest: falseto keep runtime discovery.patrol developkeeps runtime discovery unless asked. Tests underintegration_test/fall back to runtime discovery with a warning, and an explicit--emit-test-manifestthere fails the build. Seemigration5.md. (#3395) - On iOS, a
RunnerUITests.mwithout the#includeof the generated tests keeps runtime discovery with a warning that shows the lines to add (an explicit opt-in fails instead). Requirespatrol5.0. (#3395) - A
RunnerUITests.mwith the 4.7.0PATROL_INTEGRATION_TEST_IOS_RUNNER_STATIC_BEGIN/_ENDmacros fails inxcodebuild. Replace them with the snippet frommigration5.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. Requirespatrol5.0. Seemigration5.md. (#3425) --web-headlessno longer takes a value:--web-headless=trueand--web-headless falsefail. Use--web-headlessor--no-web-headless. Every command exceptpatrol mcpnow rejects leftover positional arguments instead of ignoring them. (#3452)- Remove
--tagsfrompatrol develop. It was accepted but never applied, so a session ran every test in the file. (#3382)
- 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
- Migrate to the
NativePlatformAPI ofplatform3.2.0 and drop the<3.2.0pin.platform3.2.0 needsmeta1.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 inpatrol developsessions and read their results. It runs a test on Android, iOS or, when asked, in Chrome, hot restarts it on the nextrun, runs the whole suite withpatrol testthrough itstesttool, and takes screenshots and native trees. One server serves every project it is asked about, git worktrees included. It replaces thepatrol_mcppackage, so its dependencies no longer land in the app's pubspec (#3166). Run it aspatrol mcpfrom a globally activated CLI or asdart run patrol_cli:main mcpfrom a dev dependency, with develop flags after--;PATROL_FLAGSis split as a shell would (#3026). See the docs, migrating offpatrol_mcpincluded. (#3368, #3369, #3371, #3372, #3374) patrol mcpresults report why a test failed, the session's log file with the build's errors, a run that has gone quiet, apatrolversion this CLI cannot drive and a project that pins anotherpatrol_cli. Arunthat would hot restart a session whoseflutter attachhas exited is refused right away, with attach's exit code and stderr. (#3372, #3375)- Report
patrol mcptool calls to the CLI's anonymous analytics, under the same consent andPATROL_ANALYTICS_ENABLEDswitch: 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 testsupport for Windows desktop (build + out-of-process automator sidecar), with Visual Studio 2022 or 2026.patrol developon Windows is not supported yet. (#3183, #3459) - Detect and support both Android test layouts: the self-instrumenting
:patrolTestmodule and the in-app:appandroidTest source set. (#3280) - Support build-time test discovery on macOS:
patrol build macosandpatrol test -d macosuse it by default, andpatrol test-without-building --onlyruns on macOS. Like on iOS, amacos/RunnerUITests/RunnerUITests.mwithout the#includeof the generated tests falls back to runtime discovery with a warning. A run that executes fewer tests than discovered fails, as on iOS. Requirespatrol5.0. (#3432) - Web keeps runtime test discovery:
emit_test_manifestis ignored there, and--emit-test-manifestwithpatrol test -d chromeorpatrol develop -d chromeprints a warning. (#3432) - Show why build-time discovery failed (the failing part of the host
flutter testoutput) without--verbose. (#3395) - Add native screenshots on iOS, collected by
patrol testfrom the.xcresultinto<test-directory>/screenshots. Requires Xcode 16 or newer. See the docs. (#3271) patrol develop -d chromenow uses a real Flutter hot restart instead of relaunching the browser and the Playwright driver on everyr; oneflutter runstays 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
ronce the app is up, queueing one pressed earlier, as develop already does on mobile. Hot restart outcomes are reported, anrthatflutter rundropped 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-portinstead of scraping it out offlutter 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--profileand--releasewithout--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 headersflutter runsends, and accepts the--web-*options that shape a run, so the same artifact can be sharded across machines. (#3040)patrol test-without-buildingon Android now installs theandroidTestUtilAPKs (orchestrator, test-services) from the lastpatrol build android, so tools that write throughTestStorage, such as allure-android, work on a fresh device. (#3427)- Look for a
patrol test/patrol developtarget 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.dartworks 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 updatepatroland, on Ubuntu, whichPLAYWRIGHT_HOST_PLATFORM_OVERRIDEvalue 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 attachorflutter logsinpatrol develop. (#3234) patrol developstops waiting for the app's uninstall after 30 s when a session ends withoutq, 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:
mainnow takes them and passes them to tests as$.entrypointArgs. Needspatrol5.0. (#3366) - Fix
patrol developleaving Gradle and logcat processes behind after quitting withq, and the test running on the Android device after Ctrl+C. (#3249) patrol developno longer leavesadbport forwards behind on Android devices when the session ends. (#3367)- Fix Ctrl+C during a web
patrol testbeing 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 chromestartup 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 rundied while the session was still starting up. (#3040) - Fix
patrol developfailing 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:trueinpatrol coverage pull: it merges the per-test runs thatpatrol4.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-apksfailing withflutter build bundle failed with code 64on projects with a flavor and a fresh checkout (as on CI):--flavoris no longer passed toflutter build bundle, which has no such option. (#3297)
4.9.0 #
- Add
patrol coverage pull, which splits the JaCoCo.eccoverage of a patrol Android run into a standardjacoco.execand a Dartpatrol_lcov.info, merging duplicate records across tests and shards.--input <file or directory>reads local.ecfiles (e.g. emulator.wtf or Firebase Test Lab outputs), and--browserstack-build-iddownloads them from BrowserStack. The Dart coverage comes frompatrol4.11.0 or newer. See the docs. (#3066) - Run a server on the host during iOS simulator runs, which the experimental
$.platform.ios.setFoldPostureuses to fold a foldable simulator such as the iPhone Duo. Requirespatrol4.11.0 or newer. (#3336) - Allow
equatable3.x by widening the constraint to>=2.1.0 <4.0.0, and requirepatrol_log^0.10.2, which allows it too. Resolution stays on 2.x untilcli_completionsupports 3.x. (#3322) - Fix
idevicesyslognot 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-logsoutput and the test summary. (#3246) - Fix
--flutter-commandandPATROL_FLUTTER_COMMANDsplitting quoted text on spaces, so a quoted Flutter path with spaces works. AddsplitCommandLineto the public API. (#3315) - Fix
patrol teston web timing out when the Flutter web server serves https (set up withweb_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
patrol4.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_failurein the pubspec'spatrolsection and collected bypatrol testinto<test-directory>/screenshots. Requirespatrol4.10.0 or newer. See the docs. (#3222) - Allow the latest
package_config,cli_completionandpub_updater. (#3225) - Constrain
platformbelow 3.2.0, which ships a non-backwards-compatible API. (#3288) - Report
--onlyentries that match nothing instead of dropping them silently. - Report a
RunnerUITests.mthat disagrees with the build-time discovery setting, instead of failing the build on a missing.inc. - Fix
patrolTargetPlatformreporting the host's platform during build-time discovery. (#3241) - Fix
patrol developignoring build-time test discovery. - Fix looking for the
.xctestrunfile 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 developlosing logs on devices and failing on simulators. (#2465, #3279) - Fix
patrol developcrashing on hosts whose terminal modes can't be changed. (#3278)
4.7.0 #
- Requires
patrol4.9.0 or newer. - Pass
-Ppatrol-enabled=trueto 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_manifestin 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 previouspatrol buildwithout rebuilding, optionally just one of them with--only. Requires build-time test discovery. (#3197) - Add
--record-videoflag topatrol testandpatrol developto record a video per test case (Android and iOS simulators). (#2741) - Fix
patrol test/patrol developnot reading logs from iOS simulators, by streaming the simulator's log viasimctl spawn. (#3198)
4.6.1 #
- Fix
patrol developprinting "You must specify a --flavor option" on iOS/macOS projects with schemes, by passing the flavor toflutter attach. - Fail fast with a clear error instead of hanging on gradlew when the Android SDK can't be located (
sdk.dirmissing fromandroid/local.propertiesafter the config-only build). (#3168)
4.6.0 #
- Download only Chromium instead of all default Playwright browsers during web runner setup. (#3156)
- Fix
patrol developnot reporting completion when the app shuts down before the tests finish, causingpatrol_mcpto hang until its timeout. The backend exit is now detected independently offlutter attach. - Fix
patrol test -d chromefailing withNo devices attachedon 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-headlessto a flag. Use--web-headless/--no-web-headlessinstead 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 --coveragesupport for the web platform, producing the samecoverage/patrol_lcov.inforeport 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 XCTestlinker flags to iOS and macOSbuild-for-testingto support Swift Package Manager integration. - Fix
patrol developon iOS Simulator timing out after ~6 minutes with "Test runner never began executing tests after launching". Requires a matchingpatrolversion that enables the develop-specific native test runner path. (#3139) - Fix
patrol test/patrol develophanging on Windows atgradlew :app:dependenciesby also draining the gradle process stderr stream during orchestrator-version detection. (#2565) - Fix
--excludenot working. (#2990) - Fix
--clear-permissionsbeing ignored bypatrol build ios. The flag was wired intopatrol testbut dropped frombuild ios, so prebuilt iOS test bundles (e.g. for BrowserStack/Firebase Test Lab) never hadCLEAR_PERMISSIONSenabled. - Fix wrong import path being generated on Windows for commands like
patrol test -t .\patrol_test\example_test.dart. - Fix
test_bundle.dartgenerating a broken absolute import (and an invalid import alias containing characters such as-) when the test target lives outside the configuredtest_directory. The import is now computed relative to the bundle and the alias is sanitized. (#3104) - Don't listen for
SIGTERMon Windows, where it is not supported and throws an unhandledSignalException. (#3035) - Bump
equatableto^2.1.0and migratePatrolPubspecConfigand related config classes from deprecatedEquatableMixintowith Equatable. - Bump
patrol_logto^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_logto^0.9.0. - Add
--app-nameflag to overrideapp_namefrom pubspec.yaml. (#2557) - Fix
patrol test --coveragecrashing withPathNotFoundExceptionin Pub workspaces by resolving.dart_tool/package_config.jsonfrom the workspace root. (#2844) - Add
--coverage-workspaceflag to include every package declared under the workspace root'sworkspace: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_logto^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-portoption to specify the port for the web server when running web tests withpatrol test. (#2832) - Add
--web-server-timeoutflag 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-iconsflag in cli commands. (#2704) - Fix
PATROL_FLUTTER_COMMANDnot being used when building web app. (#2857) - Remove unused import in
test_bundle.dartfiles. (#2885) - Bump
patrol_logto0.7.0. (#2917)
4.0.2 #
- Remove
platform_automator.dartimport fromtest_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.
- Introduce support for web-related flags:
-
Add support for configurable test directory via
test_directoryoption inpubspec.yaml. (#2728) -
Introduces experimental
--full-isolationflag that uninstall the app between each run on iOS Simulator. -
Bump
patrol_logto0.6.0. -
Read Patrol version from
pubspec.lockinstead ofpubspec.yamlfor compatibility checks. Fix edge cases for compatibility checks. (#2709) -
BREAKING CHANGE
- Change default test directory from
integration_testtopatrol_test. (#2728)
- Change default test directory from
This version requires version 4.0.0 of patrol package.
3.11.0 #
- Add
--build-nameand--build-numberflags topatrol test,patrol develop, andpatrol buildcommands. (#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_COMMANDnot being used when using--coverageflag. (#2781)
This version requires version 3.20.0 of patrol package.
3.10.0 #
- Add help command
htopatrol develop. (#2701) - Add printing paths to the APKs after
patrol buildcommand. (#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_lintto17.0.0. - Bump
patrol_logto0.5.0. - Bump minimum Dart SDK to version 3.8.0.
3.8.0 #
- Remove
--waitargument from patrol develop command (#2671 & #2691) - Add support for comments in .patrol.env files. (#2653)
- Skip update check when the
patrol_clibinary 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-compatibilityflag 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 developprocess by pressing q on the keyboard (#2577) - Fix issue with reading logs on iOS devices in release. (#2569)
- Add
--iosflag topatrol testthat specifies the iOS version to use. (#2540) - Bump
custom_lintto0.7.0andleancode_lintto14.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_servicedependency to15.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-packagesflag topatrol testthat 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_ENABLEDenvironment 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_logpackage. (#2387)
This version requires version 3.13.0 of patrol package.
3.3.0 #
- Add
clear-permissionsflag 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
javaversion. (#2301) - Change selecting
javapath. (#2300)
3.1.0 #
- Add
tagsandexclude-tags. (#2286) - Run
flutter build apk --config-onlyduring android build.(#2293)
This version requires version 3.10.0 of patrol package.
3.0.1 #
- Fallback to read
javaversion fromJAVA_HOMEwhenflutter doctordoesn't print any.
3.0.0 #
- Breaking: Use
javaversion fromflutter 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 buildis executed (#2061).
2.6.0 #
-
Allow for changing the port when running on iOS (#2027).
To do so, pass
test-server-port(default 8081) andapp-server-port(default 8082) to Patrol CLI commands (e.gpatrol test) -
Do not open devtools by default when
patrol developis 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 1when callingxcodebuild test-without-buildingto fail faster in error conditions (#1979) - Set
--only-testing RunnerUITests/RunnerUITeststo 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
topicsin pubspec (#1904) - Remove warning about
patrol_findersbeing split frompatrol - Allow to disable autogenerating shell completion code in
~/.zshrc(and alike) by setting thePATROL_NO_COMPLETIONenvironment 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-devtoolsflag.
- Automatically open DevTools when running
This version requires version 3.0.0 of patrol package.
2.2.2 #
- Fix parsing
--dart-defineswhen a value contains a comma (#1845)
2.2.1 #
- Fix bug with
test_bundle.dartbeing sometimes garbled on Windows (#1797)
2.2.0 #
- Add support for
group()(#1634) - Adjust generated
test_bundle.dartto 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
.xctestrunfile not being found when theRunnerUITeststarge uses XCTestPlans (#1636)
2.1.1 #
- Change the location of iOS test reports to
build/ios_resultswith timestamp appended. The path to the report is printed afterpatrol testexits (#1623)
2.1.0 #
- Add
--no-generate-bundleflag (#1565) - Don't check for
patrol_cliupdates on CI (#1557)
2.0.4 #
- Fix crashes on some older Android versions when speculative
adb uninstallis called (#1529)
2.0.3 #
- Uninstall the app before
patrol testandpatrol develop, in addition to uninstalling them after tests finish (#1500)
2.0.2 #
- Fix
--releasenot 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 #
1.1.11 #
- Deprecate running test on many devices simultaneously (#1318)
1.1.10 #
- Fix
dart pub global activate patrol_clifailing 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 developnot 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
--excludeflag topatrol test(#1137)
1.1.2 #
- Fix
patrol test/patrol developbeing stuck after tests finish ifadbexecutable is not in $PATH. Now an error is thrown (#1119)
1.1.1 #
- Fix bug when running on iOS (
.xctestrunfile couldn't be found) (#1111) - Make
patrol developcommand visible (#1104)
1.1.0 #
- Automatically infer iOS-specific build options:
schemeandconfiguration(#1090). The following options were removed frompatrol testandpatrol developcommands:--scheme,--xcconfig,--configuration - Add
patrol build androidandpatrol build ioscommands (#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 buildcrashing (#1074)
1.0.8 #
- Disable forwarding
qfrompatrol developtoflutter attachbecause it's broken (#1069) - Improve error when patrol develop is missing
--targetoption (#1064)
1.0.7 #
- Fix disposing error when SIGINT (CTRL+C) is sent during
patrol develop(#1057)
1.0.6 #
- Add
patrol developcommand which supports Hot Restart (#1057). It's not stable, but you can already try it out and report bugs.
1.0.5 #
- Add
patrol buildcommand 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
patrolinpubspec.yaml - Generate CLI completion in
$XDG_USER_HOMEinstead of$HOME(#1002)
1.0.3 #
- Add
--no-uninstallflag, which lets you not uninstall the apps after the tests finish (#983)
1.0.2 #
-
Make output of
patrol testmuch less verbose when test fails on Android. (#964)Run with
--verboseto 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.xctrunnerapp not being uninstalled after tests finish on iOS Simulator (#907)
0.9.3 #
- Add support for
flavorin Patrol configuration block inpubspec.yaml(#892) - Fix
patrol testnot propagatingPATROL_VERBOSE(activated with--verboseflag) to the Flutter side (#892)
0.9.2 #
- Fix
patrol testbroken on Windows when running tests on Android (#889)
0.9.1 #
- Improve error message of
patrol testwhen theintegration_testdirectory doesn't exist (#876) - Make
patrol testrun tests in a more predictable,ls-like order (#882) - Fix
patrol testincorrectly encoding--dart-definewhen running on Android (#885) - Display name of currently running test file in top-left corner (#885)
0.9.0 #
-
Enable
patrol testfor physical iOS devices (#863) -
Make it possible to specify
package_nameandbundle_idinpubspec.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 drivecommand (#833)Use the new
patrol testcommand. See setup instructions.
0.8.4 #
-
When using
patrol test, infer--configurationfrom--flavorwhen possible (#796) -
Fix
patrol teston Windows (#805)
0.8.3 #
- Make
patrol testmore configurable (#791)
0.8.2+1 #
- Fix typo in changelog (#783)
0.8.2 #
-
Add
patrol testcommand (#731)patrol testruns tests natively (using Gradle on Android andxcodebuildon iOS). This command is hidden frompatrol --helpfor now until we're sure it has the same featurespatrol drive, but you can already use it. In a future release,patrol drivewill be deprecated, and in 1.0,patrol drivewill be removed in favor ofpatrol 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-labelflag topatrol 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-binaryargument forpatrol drive(#667)
0.7.15 #
- Update
bootstrapcommand to generate code working withpatrolv0.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 drivefinishes (#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
activityservice 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.envfile where--dart-defines can be stored to avoid typing them manually inpatrol driveinvocations (#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
--repeatargument topatrol 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 doctorcrashing on Windows (#546)
0.7.4 #
- Print more useful info in
patrol doctor(#541) - Accept both device name and device ID for the
--deviceargument topatrol drive(#537) - Wait for the
packageservice 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
--targetflag 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)
- Fix
0.6.11 #
- Improve stability (#397)
- AutomatorServer:
- Rename
getNativeWidgets()togetNativeViews()(#399) - Add
tapOnNotificationByIndex(),tapOnNotificationBySelector(), andcloseHeadsUpNotification()on iOS (#398)
- Rename
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)
- Fix
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.xcworkspacewhen 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
--targetsargument topatrol drive(#330)
0.6.4 #
- Add the
targetsalias fortargetoption forpatrol drive(#314) - Add the
devicesalias fordeviceoption forpatrol drive(#314) - Add the
dart-definesalias fordart-defineoption forpatrol drive(#314) - Remove support for the
patrol.tomlconfig file (#313)
0.6.3 #
- Don't require
hostandportto be defined inpatrol.tomlor passed in as command-line arguments (#301) - Print cleaner, more readable logs when native action fails (#295)
0.6.2 #
- Restart
flutter driveon connection failure (#280) - Rename
--devicesto--deviceto be more consistent (#280) - Populate
homepagefield inpubspec.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
--waitargument which accepts the number of seconds to wait after the test finishes (#251) - Make
maestro driverun all tests (#253)
0.5.2 #
- Migrate iOS AutomatorServer to a more stable HTTP server, which doesn't crash randomly (#220)
- Add new
packageNameandbundleIdfields tomaestro.toml - Add new arguments to the tool:
--package-nameand--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_cliwill 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 installis automatically run when iOS artifacts are downloaded (macOS only) (#206)
0.4.4+3 #
- Fix not working on Windows because of
fluttercommand not being found
0.4.4+2 #
- Fix problem with project not building because of a breaking change in
package:mason_loggerdependency
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_PATHenvironment variable toMAESTRO_CACHE - Add
maestro devicescommand - Some work made under the hood to enable support for iOS
0.4.0 #
- Support maestro_test 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 inmaestro.toml - Fix templates generated by
maestro bootstrap
0.3.1 #
- Automatically inform about new version when it is available
- Add
maestro updatecommand to easily update the package
0.3.0 #
- Add support for new features in maestro_test 0.3.0
0.2.0 #
- Add support for new features in maestro_test 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
flavoroption required - Add
--debugflag tomaestro 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_lintin README
0.1.0 #
- Add
--templateoption formaestro bootstrap - Add
--flavoroptions formaestro drive - Rename
maestro configtomaestro doctor
0.0.9 #
- Add
--deviceoption formaestro drive, which allows you to specify the device to use. Devices can be obtained usingadb devices
0.0.8 #
- Fix
maestro driveon Windows crashing with ProcessException
0.0.7 #
- Fix a few bugs
0.0.6 #
- Fix
maestro bootstrapon Windows crashing with ProcessException
0.0.5 #
- Make versions match AutomatorServer
0.0.4 #
- Nothing
0.0.3 #
- Add support for
maestro.tomlconfig file
0.0.2 #
- Split
maestroandmaestro_cliinto separate packages - Add basic, working command line interface with
0.0.1 #
- Initial version
