dart-generate-test-mocks은(는) 무엇을 하나요?
package:mockito와 build_runner를 사용하여 외부 의존성에 대한 모의 객체를 정의하고 생성합니다. API나 데이터베이스와 같은 복잡한 외부 서비스에 의존하는 클래스의 단위 테스트 시 사용하세요.
`package:mockito`와 `build_runner`를 사용하여 외부 의존성에 대한 모의 객체를 정의하고 생성합니다. API나 데이터베이스와 같은 복잡한 외부 서비스에 의존하는 클래스의 단위 테스트 시 사용하세요.
이 스킬은 Dart 언어의 `package:mockito`와 `build_runner`를 활용하여 외부 의존성(예: API, 데이터베이스)에 대한 모의(mock) 객체를 자동으로 생성합니다. 개발자는 복잡한 외부 서비스를 모방하는 테스트 더블을 쉽게 정의하고, `build_runner`를 통해 코드 생성을 실행할 수 있습니다. 주로 Flutter 및 Dart 프로젝트의 단위 테스트에서 의존성 주입을 단순화하고 테스트 격리를 강화하는 데 사용됩니다. `build.yaml` 설정을 통해 생성할 mock 클래스를 지정하며, 어노테이션 기반으로 모의 객체를 선언합니다.
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-generate-test-mocksInstalled? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
package:mockito와 build_runner를 사용하여 외부 의존성에 대한 모의 객체를 정의하고 생성합니다. API나 데이터베이스와 같은 복잡한 외부 서비스에 의존하는 클래스의 단위 테스트 시 사용하세요.
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
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.
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.