dart-add-unit-test은(는) 무엇을 하나요?
함수, 메서드, 클래스에 대한 단위 테스트를 package:test를 사용하여 작성하고 구성합니다. 새로운 로직을 만들거나 버그를 수정할 때 코드의 정확성을 보장하고 회귀를 방지하기 위해 사용하세요.
함수, 메서드, 클래스에 대한 단위 테스트를 `package:test`를 사용하여 작성하고 구성합니다. 새로운 로직을 만들거나 버그를 수정할 때 코드의 정확성을 보장하고 회귀를 방지하기 위해 사용하세요.
이 기술은 Dart 개발자가 `package:test`를 사용하여 함수, 메서드, 클래스에 대한 단위 테스트를 작성하고 구성할 수 있도록 지원합니다. 새로운 로직을 추가하거나 버그를 수정할 때 활용하여 코드의 정확성을 유지하고 회귀 오류를 방지하는 것이 주요 목적입니다. 주로 Claude Code, Cursor, Codex와 같은 AI 어시스턴트와 함께 사용되며, 개발자가 테스트 파일을 생성하고, 테스트 케이스를 구조화하며, 기존 코드베이스에 테스트를 통합하는 과정을 자동화합니다. 기술 문서(SKILL.md)를 기반으로 동작하며, `package:test`의 API와 일반적인 테스트 패턴(예: `group`, `test`, `expect`, `setUp`, `tearDown`)을 활용하여 생산성과 코드 품질을 향상시킵니다.
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.