Skip to main content

Dart Test Fundamentals

Skill Verified Active

Core concepts and best practices for `package:test`. Covers `test`, `group`, lifecycle methods (`setUp`, `tearDown`), and configuration (`dart_test.yaml`).

Purpose

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/skills

Runs 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

Verified
98 /100
Analyzed about 16 hours ago

Trust Signals

Last commit1 day ago
Stars1.9k
LicenseBSD-3-Clause
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.