Integration E2E Testing
shinpr/claude-code-workflows
Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria.
A skill your agent uses when writing E2E/integration tests, testing native interactions like permissions or system dialogs, capturing UI regressions, or validating cross-platform behavior (Patrol…
$ npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install evanca/flutter-ai-rules patrol-e2e-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/patrol-e2e-testing .claude/skills/patrol-e2e-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "patrol-e2e-testing" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testing into .claude/skills/patrol-e2e-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patrol-e2e-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install evanca/flutter-ai-rules patrol-e2e-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/patrol-e2e-testing .agents/skills/patrol-e2e-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "patrol-e2e-testing" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testing into .agents/skills/patrol-e2e-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patrol-e2e-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install evanca/flutter-ai-rules patrol-e2e-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/patrol-e2e-testing .cursor/skills/patrol-e2e-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "patrol-e2e-testing" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testing into .cursor/skills/patrol-e2e-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patrol-e2e-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/evanca/flutter-ai-rules.git --path skills/patrol-e2e-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install evanca/flutter-ai-rules patrol-e2e-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/patrol-e2e-testing .gemini/skills/patrol-e2e-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "patrol-e2e-testing" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testing into .gemini/skills/patrol-e2e-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patrol-e2e-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install evanca/flutter-ai-rules patrol-e2e-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/patrol-e2e-testing .github/skills/patrol-e2e-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "patrol-e2e-testing" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testing into .github/skills/patrol-e2e-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patrol-e2e-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install evanca/flutter-ai-rules patrol-e2e-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/patrol-e2e-testing .opencode/skills/patrol-e2e-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "patrol-e2e-testing" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/patrol-e2e-testing into .opencode/skills/patrol-e2e-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patrol-e2e-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
patrol-e2e-testingA skill your agent uses when writing E2E/integration tests, testing native interactions like permissions or system dialogs, capturing UI regressions, or validating cross-platform behavior (Patrol…
Patrol E2E Testing is an agent skill from evanca/flutter-ai-rules. Use when writing E2E/integration tests, testing native interactions like permissions or system dialogs, capturing UI regressions, or validating cross-platform behavior (Patrol 4.x).
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering End-to-end testing and Integration testing. The repository describes itself as: Flutter AI Skills and Rules for Claude, Codex, Cursor, and Other AI-Powered IDEs. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 7b9cce2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are dart and bash).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
patrol.leancode.coFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
E2E_PASSWORDFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Patrol E2E Testing loads about 1.4k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 392 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from evanca/flutter-ai-rules at commit 7b9cce2, republished under its MIT licence (© evanca). 392 words, ~1,409 tokens.
.claude/skills/patrol-e2e-testing/SKILL.md (or your agent's skills folder).Design, implement, and run end-to-end (E2E) tests using Patrol 4.x in Flutter projects.
Use this skill when:
Follow the official Patrol documentation for installation and project initialization: https://patrol.leancode.co/documentation#setup
Key Patrol conventions:
patrol as a dev dependency.patrol_test/._test.dart suffix.patrol test.Follow these steps when implementing or updating Patrol tests.
Break the feature into:
Rules:
Basic Patrol structure:
import 'package:flutter_test/flutter_test.dart';
import 'package:patrol/patrol.dart';
void main() {
patrolTest(
'user can log in successfully',
($) async {
await $.pumpWidgetAndSettle(const MyApp());
const email = String.fromEnvironment('E2E_EMAIL');
const password = String.fromEnvironment('E2E_PASSWORD');
await $(#emailField).enterText(email);
await $(#passwordField).enterText(password);
await $(#loginButton).tap();
await $.waitUntilVisible($(#homeScreenTitle));
expect($(#homeScreenTitle).text, equals('Welcome'));
},
);
}Key concepts:
patrolTest() instead of testWidgets().$ is the Patrol tester.$(#keyName) to find widgets by Key.waitUntilVisible).For OS-level permission dialogs:
patrolTest('grants camera permission', ($) async {
await $.pumpWidgetAndSettle(const MyApp());
await $(#openCameraButton).tap();
if (await $.native.isPermissionDialogVisible()) {
await $.native.grantPermission();
}
await $.waitUntilVisible($(#cameraPreview));
});Use native automation only when required by the feature.
Finding widgets:
$('some text') // by text
$(TextField) // by type
$(Icons.arrow_back) // by iconTapping:
// Tap a widget containing a specific text label
await $(Container).$('click').tap();
// Tap a container that contains an ElevatedButton
await $(Container).containing(ElevatedButton).tap();
// Tap only the enabled ElevatedButton
await $(ElevatedButton)
.which<ElevatedButton>(
(b) => b.enabled,
)
.tap();Entering text:
// Enter text into the second TextField on screen
await $(TextField).at(1).enterText('your input');Scrolling:
await $(widget_you_want_to_scroll_to).scrollTo();Native interactions:
// Grant permission while app is in use
await $.native.grantPermissionWhenInUse();
// Open notification shade and tap a notification by text
await $.native.openNotifications();
await $.native.tapOnNotificationBySelector(
Selector(textContains: 'text'),
);Run all tests:
patrol testRun a specific file with live reload (development mode):
patrol develop -t integration_test/my_test.dartRun a specific file:
patrol test --target patrol_test/login_test.dartRun on web:
patrol test --device chromeHeadless web (CI):
patrol test --device chrome --web-headless trueFilter by tags:
patrol test --tags androidFlaky tests undermine confidence. Apply these patterns:
// AVOID — arbitrary delay
await Future.delayed(Duration(seconds: 3));
// PREFER — explicit wait condition
await $.waitUntilVisible($(#targetWidget));
// For animations, pump until settled
await $.pumpAndSettle();Future.delayed as a synchronization mechanism.waitUntilVisible or waitUntilExists to wait for UI state.settleTimeout in PatrolTesterConfig for slow CI environments.When applied, this skill produces:
Key additions to production code.patrol test command(s) to execute locally.Checkpoint: Run patrol test --target <file> locally to confirm the test passes before committing.
A valid Patrol test must be:
String.fromEnvironment, never hardcoded.--web-headless true or on emulator.© evanca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/patrol-e2e-testing of evanca/flutter-ai-rules.
Open the folder on GitHubat commit 7b9cce2
Patrol E2E Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Patrol E2E Testing this skillevanca/flutter-ai-rules | 649 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Integration E2E Testingshinpr/claude-code-workflows | 691 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Add Acceptance Testtalkincode/toughradius | 691 | — | ~827 | Automated safety check: Pass | MIT | |
| Integration E2E Testingshinpr/ai-coding-project-boilerplate | 232 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Migrate E2E To Integrationopenshift/oc-mirror | 124 | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Om Integration Testsgo-musicfox/go-musicfox | 2.6k | 1 repos | ~3.6k | Automated safety check: Notes | GPL-3.0 |
shinpr/claude-code-workflows
Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria.
talkincode/toughradius
Write CI-executable acceptance/integration tests for protocol or end-to-end changes (TR-F022).
shinpr/ai-coding-project-boilerplate
Selects and designs the smallest integration/E2E test set that proves accepted behavior at an observable boundary.
openshift/oc-mirror
Migrate an oc-mirror e2e test case to the integration test suite, translating framework, registry, invocation, and assertion patterns
go-musicfox/go-musicfox
Run and create integration/E2E tests by exploring the live app with the configured browser provider, preserving repository-native runners, reusing the shared test environment, and diagnosing…
qshanx/docs-governance
盘点并维护项目测试资产,把需求、业务规则、风险、Bug 和跨端接口契约转成 TEST-ID 与可验证证据,生成或更新 TESTS.md。用于测试资产盘点、测试缺口分析、单元/集成/契约/E2E/冒烟分类、Bug 回归保护、前后端或多服务基于同一契约的消费者/提供者测试、测试必要性判断、测试清单维护与交付前测试证据审查。中文触发:测试盘点、测试清单、测试资产、测试缺口、测试必要性、Bug…
evanca/flutter-ai-rules
A skill your agent uses when asked to review a PR, MR, branch, or diff, audit changed files, or check code quality.
evanca/flutter-ai-rules
A skill your agent uses when building AI agents in Dart, implementing Genkit flows or tools, integrating LLMs into Dart or Flutter applications, or using Genkit Dart plugins.
evanca/flutter-ai-rules
A skill your agent uses when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API…
evanca/flutter-ai-rules
A skill your agent uses when building any Flutter screen or component to choose responsive Row, Column, Expanded, Flexible, and Spacer layouts before fixed-size or coordinate-based alternatives.
evanca/flutter-ai-rules
A skill your agent uses when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.
evanca/flutter-ai-rules
A skill your agent uses when creating a Cubit or Bloc, modeling state with sealed classes or status enums, wiring BlocBuilder/BlocListener/BlocProvider, writing bloc tests, or choosing between Cubit…
Categories
A skill your agent uses when writing E2E/integration tests, testing native interactions like permissions or system dialogs, capturing UI regressions, or validating cross-platform behavior (Patrol…. Patrol E2E Testing is an agent skill from evanca/flutter-ai-rules.x).
Patrol E2E Testing fits situations like: writing E2E/integration tests; testing native interactions like permissions; capturing UI regressions; validating cross-platform behavior (Patrol 4.x).
Run `npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a claude-code`. Or copy the skill folder (skills/patrol-e2e-testing in evanca/flutter-ai-rules) into .claude/skills/patrol-e2e-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a codex`. Or copy the skill folder (skills/patrol-e2e-testing in evanca/flutter-ai-rules) into .agents/skills/patrol-e2e-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add evanca/flutter-ai-rules --skill patrol-e2e-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/patrol-e2e-testing, .gemini/skills/patrol-e2e-testing, .github/skills/patrol-e2e-testing and .opencode/skills/patrol-e2e-testing in your project.
Going by SKILL.md and its folder, Patrol E2E Testing needs credentials named E2E_PASSWORD.
SKILL.md names 1 domain. As links in the text: patrol.leancode.co. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Patrol E2E Testing is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Patrol E2E Testing: Integration E2E Testing (shinpr/claude-code-workflows, 691 stars), Add Acceptance Test (talkincode/toughradius, 691 stars), Integration E2E Testing (shinpr/ai-coding-project-boilerplate, 232 stars) and Migrate E2E To Integration (openshift/oc-mirror, 124 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
evanca (a GitHub user) maintains it in evanca/flutter-ai-rules, which has 649 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on September 14, 2026.
Source: evanca/flutter-ai-rules on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.