Dart Generate Test Mocks skill: what it does and how to install it
Generates Mockito test doubles for Dart dependencies and guides stub, verification and test execution with build_runner.
Summary generated from the skill's documentation.
Install
$ npx skills add flutter/agent-plugins --skill dart-generate-test-mocksRun it in a terminal. If your agent is already running, start a new session so it picks the skill up.
About this skill
What it does. Structures Dart code for dependency injection, adds the required testing and code-generation packages, and generates Mockito classes with @GenerateNiceMocks. It guides asynchronous stubbing, interaction verification, assertions and running dart test, including fixes for common generation and mock failures.
When to use it. For unit tests of Dart classes that depend on external services such as HTTP clients, APIs or databases. It applies when those dependencies need to be replaced with configurable mocks.
History
Repo stars
3kAbout +2.8k since 16 Jul 2026
Before 1 Oct 2026 the curve is estimated from public event data.
Stars are counted for the whole repository, which holds 25 skills.
Show as a table
| Date | Repo stars |
|---|---|
| 1 Oct 2026 | 3,016 |
| 24 Sept 2026 (estimated) | 2,828 |
| 17 Sept 2026 (estimated) | 2,262 |
| 10 Sept 2026 (estimated) | 1,131 |
| 3 Sept 2026 (estimated) | 189 |
| 27 Aug 2026 (estimated) | 189 |
| 20 Aug 2026 (estimated) | 189 |
| 13 Aug 2026 (estimated) | 189 |
| 6 Aug 2026 (estimated) | 189 |
| 30 Jul 2026 (estimated) | 189 |
| 23 Jul 2026 (estimated) | 189 |
| 16 Jul 2026 (estimated) | 189 |
Installs
10.7k
Tracking since . A chart appears once there are 7 days of data.
Installs via skills.sh
Similar skills
- Finishing a Development BranchGuides the choice of how to integrate finished work once tests pass: merge, pull request or cleanup.
- Systematic DebuggingMakes the agent find the root cause of a bug, test failure or unexpected behaviour before it proposes a fix.
- Test-Driven DevelopmentMakes the agent write a failing test before any implementation code, for features and bug fixes alike.