Claude Code DocuDart test for Dart analysis and formatting
Run Dart tests, static analysis, and formatting together. Report errors and affected files by category.
中文Install in Claude Code
Open DocuDart in Claude Code with the Dart SDK and project dependencies. The format check command can rewrite local files that need formatting.
- Review `.claude/skills/test/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/test/` in your project and save the reviewed file as `.claude/skills/test/SKILL.md`.
- Start Claude Code from that project's root, then select `/test` in the slash menu.
Example task
In the dart-09 working copy, 31 tests pass and the analyzer finds 0 issues. The formatter reports a change to lib/site_index.dart.What to check
Report {testsPassed: 31, analysisIssues: 0, formatChanged: 'lib/site_index.dart', overall: 'FAIL'}. Explain that the formatting check made the overall result fail.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why can the overall result fail when unit tests pass?
Visible status is calculated separately for tests, analysis, and formatting. A failure in any check appears in the category and overall result.