test-flutter
test-flutter automates testing workflows for Flutter apps, combining unit tests, widget tests, static analysis, and code formatting into a single execution flow. It provides structured test conventions for organizing tests by feature and separates logic verification from UI interaction testing.
test-flutter runs Flutter app tests alongside static analysis, formatting, and code quality checks.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
test-flutter runs Flutter app tests alongside static analysis, formatting, and code quality checks. test-flutter automates testing workflows for Flutter apps, combining unit tests, widget tests, static analysis, and code formatting into a single execution flow. It provides structured test conventions for organizing tests by feature and separates logic verification from UI interaction testing.
Use it when
- test-flutter runs dart analyze to perform static code analysis and dart format to enforce code style compliance.
- test-flutter follows Flutter conventions for test file organization: place tests in a test/ directory mirroring your lib/ structure.
Verify before relying
Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.
Install
K9i-0/ccpocket/test-flutter · repository language: Dart
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I run flutter tests with test-flutter?
test-flutter executes flutter test commands to run your app's unit and widget tests in an organized workflow. The skill automates test discovery, execution, and reporting across your test suite. It integrates static analysis checks so you can verify both functionality and code quality in a single pass, following Flutter testing conventions.
What does dart static analysis and formatting do in test-flutter?
test-flutter runs dart analyze to perform static code analysis and dart format to enforce code style compliance. These tools catch potential bugs, enforce linting rules, and ensure consistent Dart code formatting across your project. Running them together with your tests maintains code quality standards alongside functional verification.
How should I structure my flutter test files?
test-flutter follows Flutter conventions for test file organization: place tests in a test/ directory mirroring your lib/ structure, name test files with _test.dart suffix, and organize tests by feature. Separate widget tests (testing UI interactions) from logic tests (testing business logic). This structure keeps tests maintainable and discoverable.
What's the difference between widget and logic tests in test-flutter?
test-flutter distinguishes widget tests from logic tests: widget tests use testWidgets to verify UI behavior and user interactions, while logic tests verify business logic and data processing. Separating these concerns makes tests faster, more focused, and easier to maintain. test-flutter helps you write both types following Flutter best practices.
Can test-flutter help with dart linting and analysis?
Yes, test-flutter integrates dart analyze for static analysis and linting checks. It identifies code quality issues, potential bugs, and style violations before runtime. Combined with dart format for code formatting, test-flutter ensures your Dart codebase meets quality standards and follows established conventions.
What testing conventions does test-flutter enforce?
test-flutter automates testing workflows using Flutter conventions: organizing tests by feature, using _test.dart naming patterns, separating widget and logic tests, and running static analysis alongside functional tests. These conventions make your test suite scalable, maintainable, and aligned with Flutter community standards.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Flutter App テスト
実行手順
以下を順番に実行し、全てパスすることを確認する。
1. 静的解析
dart analyze apps/mobile
warning 以上は修正する。info レベルは必要に応じて対応。
MCP代替: mcp__dart-mcp__analyze_files でも実行可能だが、CLI推奨。
2. フォーマット
dart format apps/mobile
3. ユニットテスト
cd apps/mobile && flutter test
特定ファイルのみ:
cd apps/mobile && flutter test test/<filename>_test.dart
MCP代替: mcp__dart-mcp__run_tests でも実行可能だが、CLI推奨。
MCP版はDTD接続不要な操作のため、CLIの方が効率的。
テスト記述規約
ファイル配置・命名
- テストファイルは
apps/mobile/test/に配置 - 命名:
<対象の概念>_test.dart - ウィジェットテスト例:
approval_bar_test.dart,chat_input_bar_test.dart - ロジックテスト例:
chat_message_handler_test.dart
import
import 'package:flutter_test/flutter_test.dart';
import 'package:ccpocket/...';
テスト構造
```dart void main() { group('対象クラスまたは機能', () { test('動作の説明', () { // ロジックテスト expect(actual, expected); });
testWidgets('UI動作の説明', (tester) async {
// ウィジェットテスト
await
(truncated - see the full file via the links below)
File tree — 1 file
.claude/skills/test-flutter/SKILL.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Run and organize Flutter app tests with static analysis”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Flutter Upgrade guides you through SDK version updates with structured phases: research release notes and breaking changes, analyze codebase impact across mise, CI/CD, and Shorebird configurations, generate prioritized task lists, then execute upgrades with validation.
This skill automates the creation of Flutter tests across widget and integration layers, helping you validate UI components and user workflows programmatically. It streamlines test generation for Flutter applications, reducing manual test writing overhead and improving coverage across your app's interactive surfaces.
Triage examines GitHub issues and pull requests by gathering context, investigating the codebase, and estimating implementation difficulty. It generates structured reports covering issue classification, platform support status, existing feature overlap, and actionable recommendations for whether to address, defer, or decline each request.
Mobile Automation guides E2E testing and UI verification for Flutter apps using dart-mcp and Marionette MCP. Launch apps on iOS simulators, verify UI elements, run mock scenarios without a Bridge server, or execute full end-to-end flows with Bridge integration for real Claude Code sessions.
Submit Store Review guides you through submitting pre-built iOS and Android candidates to their respective app stores for review. It handles candidate selection, pre-submission verification, metadata synchronization, and rejection resubmission—keeping build creation separate from the submission workflow. The skill confirms metadata alignment, validates in-app purchases, and verifies final store status before and after submission.
Shorebird Patch automates the creation and staging of over-the-air patches for iOS and Android apps. The skill handles patch generation, asset difference validation, and staging distribution, while leaving production promotion to manual user control after verification. Use this when you need to push updates without a full release.
More skills e2e-testing (MIT) · web-preview (MIT) · release-app (MIT) · update-store (MIT)