dart-generate-test-mocks
OfficialMock external dependencies for Dart tests.
Authordart-lang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Generating and mocking external dependencies for reliable Dart unit tests, enabling isolated testing of components that interact with APIs, databases, or other services.
Core Features & Use Cases
- Automatic mock generation with package:mockito and build_runner.
- Easy testability through dependency injection and mock abstractions.
- Use cases include API clients, HTTP services, and external integrations.
Quick Start
Create a new test and annotate dependencies with @GenerateNiceMocks, then run dart run build_runner build to generate the mocks.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dart-generate-test-mocks Download link: https://github.com/dart-lang/skills/archive/main.zip#dart-generate-test-mocks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.