dart-add-unit-test
dart add unit test
Claude Code
What it does
- Structuring Test Files
- Writing Tests
- Executing Tests
- Test Implementation Workflow
- Place all test code within the test directory at the root of the package.
- Append test.dart to the end of all test file names (e.g., lib/src/utils.dart should be tested in test/src/utilstest.dart).
- If writing integration tests, place them in an integrationtest directory at the root of the package.
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
dart-add-unit-test FAQ
What does the dart-add-unit-test skill do?
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. Structuring Test Files Writing Tests
How do I install dart-add-unit-test?
Run: npx -y skills add https://github.com/dart-lang/skills --skill dart-add-unit-test --agent claude-code — the source lives at github.com/dart-lang/skills.
Maintain dart-add-unit-test?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/dart-lang-skills-dart-add-unit-test?ref=badge) npx agentictools info skills/dart-lang-skills-dart-add-unit-test The second line is the CLI lookup for this page — handy in READMEs and docs.