patrol_cli 4.1.0 copy "patrol_cli: ^4.1.0" to clipboard
patrol_cli: ^4.1.0 copied to clipboard

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

Patrol #

patrol on pub.dev patrol_cli on pub.dev patrol_finders on pub.dev patrol_discord code style patrol_github_stars patrol_x

Simple yet powerful Flutter-first UI testing framework overcoming limitations of flutter_test, integration_test, and flutter_driver. Created and supported by LeanCode.

Patrol promotial graphics

Learn more about Patrol:

Patrol CLI #

Command-line tool to run and debug tests written with patrol framework.

Installation #

From pub.dev #

$ dart pub global activate patrol_cli

From git #

  1. Make sure that you have Dart >= 2.18 installed.

    $ dart --version
    
  2. Clone the repo.

  3. Go to packages/patrol_cli.

  4. Run dart pub global activate --source path .

Troubleshooting #

If you can't run patrol from the terminal and the error is something along the lines of "command not found", make sure that you've added appropriate directories to PATH:

  • on Unix-like systems, add $HOME/.pub-cache/bin
  • on Windows, add %USERPROFILE%\AppData\Local\Pub\Cache\bin

Disabling analytics #

To disable analytics, set the PATROL_ANALYTICS_ENABLED environment variable to false.

Shell completion #

Patrol CLI supports shell completion for bash, zsh and fish, thanks to the cli_completion package. It will automatically append code necessary to make the completion work to your shell's respective config file (e.g. ~/.zshrc). To disable this value, set the PATROL_NO_COMPLETION environment variable to any value.

Usage #

Read the documentation:

🛠️ Maintained by LeanCode #

This package is built with 💙 by LeanCode. We are top-tier experts focused on Flutter Enterprise solutions.

Why LeanCode? #

  • Creators of Patrol – the next-gen testing framework for Flutter.

  • Production-Ready – We use this package in apps with millions of users.

  • Full-Cycle Product Development – We take your product from scratch to long-term maintenance.


Need help with your Flutter project?

👉 Hire our team   •   Check our other packages