Dart Test Fundamentals
Skill Verified ActiveCore 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.
Features
- 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
Use Cases
- 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
Non-Goals
- 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.
Installation
npx skills add flutter/skillsRuns the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.
Quality Score
VerifiedTrust Signals
Similar Extensions
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.