Skip to content
pubscout

patrol_finders

3.7.0, released 3 weeks ago by leancode.co

High-level API for widget testing built on top of flutter_test.

Rock solid
$ flutter pub add patrol_finders
Source repository

What it does

Provides custom finders and concise actions like tap, enterText, and scroll for Flutter widget tests. Wraps actions with patrol_log for better step reporting.

AI-written summary of version 3.7.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need more readable and expressive widget tests
  • You want built‑in logging of test steps
  • You require cross‑platform support including web and desktop

Skip it when

  • You only run unit tests without UI
  • You prefer the raw flutter_test API
  • You need a testing framework for integration tests beyond widget level

Strengths

  • Concise custom finder syntax
  • Integrated logging of actions
  • Supports all Flutter platforms

Weaknesses

  • Adds another abstraction layer over flutter_test
  • Limited to widget‑level testing
  • Relies on patrol_log which may add overhead

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3
void main(){
  patrolWidgetTest('example',($){
    $(#emailInput).enterText('test@example.com');
    $(#loginButton).tap();
  });
}

Alternatives

Packages that do the same job and could replace patrol_finders.

  • test

    Standard testing package with no extra abstraction

Works with

Packages commonly used together with patrol_finders: ones it builds on, ones built on it, and its own family.