Skill / SKILL.md

Dart Generate Test Mocks

flutter/skills

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.
3 views 3,219 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/flutter/skills' skill-source

Use the complete skill-source/skills/dart-generate-test-mocks directory with your client’s skill installer.

  • skills/dart-generate-test-mocks

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/dart-generate-test-mocks

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
41b256d384d0ea07cde8f1a4e28761aed592b27fb29897daa011f3e235ef7768
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills