dart-add-unit-test は何をしますか?
package:testを使用して関数、メソッド、クラスのユニットテストを作成・整理します。新しいロジックの作成時やバグ修正時に使用し、コードの正確性を保証し、回帰を防ぎます。
`package:test`を使用して関数、メソッド、クラスのユニットテストを作成・整理します。新しいロジックの作成時やバグ修正時に使用し、コードの正確性を保証し、回帰を防ぎます。
このスキルは、Dartプロジェクトにおいて`package:test`を用いたユニットテストの追加、整理を行うためのものです。新しい関数やメソッド、クラスを作成する際、あるいはバグ修正後にテストを記述することで、コードが期待通りに動作することを検証し、将来の変更による回帰バグを防止します。主にClaude CodeなどのAIエージェントが開発支援を行う際に利用され、`SKILL.md`に基づいてテストケースの生成、テストファイルの管理、パッケージ構造に沿った配置などを自動的に行います。これにより、開発者はテストのベストプラクティスを守りつつ、迅速に高品質なコードベースを維持できます。
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-add-unit-testInstalled? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
package:testを使用して関数、メソッド、クラスのユニットテストを作成・整理します。新しいロジックの作成時やバグ修正時に使用し、コードの正確性を保証し、回帰を防ぎます。
This repo contains 8 individual skills — each has its own dedicated page.
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Collect coverage using the coverage packge and create an LCOV report
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Use switch expressions and pattern matching where appropriate
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.