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
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.
Works with
Packages commonly used together with patrol_finders: ones it builds on, ones built on it, and its own family.
- patrol_logpatrol_finders depends on itLog package for Patrol, a Flutter-native UI testing framework
- patrol_cliSame familyCommand-line tool to run and debug Patrol UI tests on multiple platforms
- patrol_mcpSame familyAn MCP server enabling AI assistants to control and monitor Patrol tests in Flutter.
- patrolBuilt on patrol_findersMultiplatform E2E UI testing framework for Flutter