flutter-add-widget-test
Create Reliable Flutter Widget Tests
Flutter UI changes can fail when rendering and user interactions are not tested. This skill provides a clear workflow for building focused WidgetTester tests and validating state changes.
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "flutter-add-widget-test" from https://skillstore.io/skills/flutter-flutter-add-widget-test.md and its manifest at https://skillstore.io/api/skills/flutter-flutter-add-widget-test/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「flutter-add-widget-test」を使用しています。 Test a counter button that increments from zero.
期待される結果:
- A WidgetTester test structure with a MaterialApp wrapper.
- An initial assertion for zero, a tap action, a pump call, and an assertion for one.
「flutter-add-widget-test」を使用しています。 Test adding and dismissing a todo item.
期待される結果:
- A test sequence for entering todo text and tapping the add button.
- Assertions confirming the item appears, then disappears after a dismissal gesture.
セキュリティ監査
安全All 32 static findings are false positives caused by Markdown inline-code delimiters and ordinary Dart identifiers. The skill contains Flutter widget-test guidance and a local example only; no executable shell, Ruby, Python, network, certificate, or reconnaissance behavior was found.
リスク要因
⚙️ 外部コマンド (28)
📁 ファイルシステムへのアクセス (1)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/flutter-flutter-add-widget-test?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/flutter-flutter-add-widget-test?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-flutter-add-widget-test/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/flutter-flutter-add-widget-test.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
flutter. (2026). flutter-add-widget-test security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1BibTeX形式の引用
@techreport{flutter-flutter-flutter-add-widget-test-2026,
author = {flutter},
title = {flutter-add-widget-test security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "flutter-add-widget-test security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flutter"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-flutter-add-widget-test:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
Test a new form interaction
Create a widget test that enters text, taps a control, and checks the updated interface.
Verify a reusable component
Confirm that a shared widget renders expected content and responds to a defined user action.
Review a regression test
Use the checklist to verify that a test covers setup, action, frame updates, and assertions.
これらのプロンプトを試す
Create a Flutter widget test for MyWidget. Verify that it renders inside a MaterialApp.
Write a widget test for my Flutter screen. Tap the Save button, pump the widget tree, and verify the success message.
Create a widget test that enters text into my search field and verifies the filtered list item appears.
Create a Flutter widget test for a dismissible list item. Drag it, wait for the animation, and verify it is removed.
ベストプラクティス
- Assert the initial UI state before triggering an interaction.
- Pump the widget tree after every action that changes state.
- Use stable keys when text or widget types are not unique.
回避
- Do not assert state changes before pumping a frame.
- Do not use pumpAndSettle for every test when a single pump is sufficient.
- Do not depend on ambiguous finders when multiple widgets match.