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

Dart Matcher Best Practices

Skill Verifiziert Aktiv

Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.

Zweck

To improve the quality and readability of Dart tests by applying best practices for assertion matchers, thereby reducing common pitfalls and debugging time.

Funktionen

  • Readable assertions with `expect`
  • Proper matcher selection guidance
  • Avoiding common pitfalls in tests
  • Improving error messages on test failures

Anwendungsfälle

  • Writing new assertions using `expect` and `package:matcher`
  • Migrating manual checks to cleaner matchers
  • Debugging confusing test failures related to assertions

Nicht-Ziele

  • Core testing concepts or test structure
  • Migrating from `package:matcher` to `package:checks`
  • General Dart code formatting or linting

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
100 /100
Analysiert about 22 hours ago

Vertrauenssignale

Letzter Commit1 day ago
Sterne1.9k
LizenzBSD-3-Clause
Status
Quellcode ansehen

Ähnliche Erweiterungen

Definition Of Done

100

Mandatory checks to run before completing any task that touches md files or dart code in this repository.

Skill
flutter

Neon Postgres

100

Anleitungen und Best Practices für die Arbeit mit Neon Serverless Postgres. Beinhaltet den Einstieg, lokale Entwicklung mit Neon, Auswahl einer Verbindungsmethode, Neon-Funktionen, Authentifizierung (@neondatabase/auth), PostgREST-ähnliche Daten-API (@neondatabase/neon-js), Neon CLI und die Neon Platform API/SDKs. Zur Beantwortung aller Neon-bezogenen Fragen.

Skill
neondatabase

Sdk Dx

100

Design SDKs that developers love to use—APIs that feel native, error messages that guide, and experiences that reduce friction. This skill covers creating SDKs that drive adoption through exceptional developer experience rather than aggressive marketing. Trigger phrases: "SDK design", "developer experience", "API design", "SDK DX", "error messages", "type safety", "IDE integration", "SDK versioning", "migration guides", "client library design", "making SDKs feel native", "SDK best practices"

Skill
jonathimer

Csharp Async

100

Get best practices for C# async programming

Skill
github

Golang Concurrency Patterns

100

Go concurrency patterns for production services: context cancellation, errgroup, worker pools, bounded parallelism, fan-in/fan-out, and common race/deadlock pitfalls

Skill
bobmatnyc

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

Skill
affaan-m