askill
tech-patrol

tech-patrolSafety 85Repository

Patrol E2E testing patterns and best practices for Flutter apps.

0 stars
1.2k downloads
Updated 2/21/2026

Package Files

Loading files...
SKILL.md

Patrol E2E Testing

Tech-stack skill for writing and debugging Patrol-based end-to-end tests in Flutter. Covers the Patrol API, common pitfalls, test data patterns, and wait strategies.

Supporting Files

FilePurpose
api-reference.mdCore Patrol API: finders, interactions, pump/settle, assertions
gotchas.mdCommon pitfalls and fixes: animations, keyboard, widget selectors
test-patterns.mdData seeding, auth helpers, test isolation, wait strategies

Overview

Patrol wraps Flutter's integration test framework with a more ergonomic API. Tests run on a real device or emulator and interact with the app as a user would.

ComponentRole
patrol packageTest runner, finder API, device interactions
patrol_findersThe $ shorthand and finder combinators
integration_test SDKFlutter's underlying test infrastructure
Patrol CLIBuilds and runs test bundles on device

Key Principles

  1. One test per invocation -- test runner swaps bundles between tests
  2. Fresh auth per test -- use anonymous sign-in for automatic data isolation
  3. No waitUntilNotVisible -- use pumpAndSettle() + expect(finder, findsNothing)
  4. Prefer pumpFor over pumpAndSettle for screens with continuous animations
  5. Test what users see -- target visible text and semantic labels, not internal IDs
  6. Seed data before assertions -- use a TestDataHelper pattern for pre-existing state

Version Compatibility

PackagePinned Version
patrol^4.1.0 (4.2.x does not exist on pub.dev)
patrol_finders^3.0.0 (3.1.x does not exist on pub.dev)
integration_testSDK (flutter_sdk)

CLI Usage

# Run a single test (required: one per invocation)
patrol test integration_test/my_test.dart

# Required flag when app path contains hyphens
patrol test --no-generate-bundle integration_test/my_test.dart

Critical: --no-generate-bundle is required when the project directory path contains hyphens (Patrol CLI 4.0.2 bug). Always use it to be safe.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 2/25/2026

Well-structured tech-stack skill for Patrol E2E testing in Flutter with clear principles, version compatibility, and CLI usage. Scores well on clarity, safety, and reusability. Minor gaps in completeness (no code examples, when-to-use section) and actionability (relies heavily on referenced files). No signs of internal-only or boilerplate content.

85
80
80
70
65

Metadata

Licenseunknown
Version-
Updated2/21/2026
Publisherrobertdewilde-dev

Tags

apisecuritytesting