Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Dart Test Fundamentals

Skill Verifiziert Aktiv

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

Zweck

To help developers understand and implement core concepts and best practices for writing effective tests in Dart projects.

Funktionen

  • 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

Anwendungsfälle

  • 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

Nicht-Ziele

  • 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

Führt das Vercel skills CLI (skills.sh) via npx aus — benötigt Node.js lokal und mindestens einen installierten skills-kompatiblen Agent (Claude Code, Cursor, Codex, …). Setzt voraus, dass das Repo dem agentskills.io-Format folgt.

Qualitätspunktzahl

Verifiziert
98 /100
Analysiert about 23 hours ago

Vertrauenssignale

Letzter Commit2 days ago
Sterne1.9k
LizenzBSD-3-Clause
Status
Quellcode ansehen