Dart Test Fundamentals
技能 已验证 活跃Core concepts and best practices for `package:test`. Covers `test`, `group`, lifecycle methods (`setUp`, `tearDown`), and configuration (`dart_test.yaml`).
To help developers understand and implement core concepts and best practices for writing effective tests in Dart projects.
功能
- Explains `test` and `group` for test structure
- Details lifecycle methods (`setUp`, `tearDown`, `setUpAll`, `tearDownAll`)
- Guides on resource cleanup using `addTearDown`
- Covers `dart_test.yaml` configuration for platforms, tags, and timeouts
- Provides best practices for test naming and parameter placement
使用场景
- Writing new test files for Dart projects
- Structuring existing test suites with `group`
- Configuring test execution behavior via `dart_test.yaml`
- Understanding and applying test lifecycle methods for isolation
非目标
- Does not provide specific test code generation
- Does not cover test runners other than the standard Dart test runner
- Does not provide in-depth coverage of specific assertion libraries (e.g., `package:checks` or `package:matcher` beyond their basic usage context)
Trust
- info:Issues Attention17 issues opened and 27 closed in the last 90 days, indicating a reasonable level of maintainer engagement.
安装
npx skills add flutter/skills通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
已验证类似扩展
Definition Of Done
100Mandatory checks to run before completing any task that touches md files or dart code in this repository.
Dart Matcher Best Practices
100Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.
Coding Standards
100Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.
Developing Genkit Dart
99Generates code and provides documentation for the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications.
Sentry Flutter Sdk
98Full Sentry SDK setup for Flutter and Dart. Use when asked to "add Sentry to Flutter", "install sentry_flutter", "setup Sentry in Dart", or configure error monitoring, tracing, profiling, session replay, or logging for Flutter applications. Supports Android, iOS, macOS, Linux, Windows, and Web.
Dart Modern Features
98Guidelines for using modern Dart features (v3.0 - v3.10) such as Records, Pattern Matching, Switch Expressions, Extension Types, Class Modifiers, Wildcards, Null-Aware Elements, and Dot Shorthands.