Dart Test Fundamentals
Helps with Dart, testing as part of agent workflows workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dart-test-fundamentals npx -- -y @trustedskills/dart-test-fundamentals
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dart-test-fundamentals": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dart-test-fundamentals"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill assists AI agents in understanding and implementing Dart testing fundamentals. It covers core concepts like test structure (tests and groups), lifecycle methods (setUp, tearDown, setUpAll, tearDownAll), configuration via dart_test.yaml, and file naming conventions. The skill is intended to help with writing new test files and structuring existing test suites within a Dart project.
When to use it
- Writing new Dart test files.
- Structuring tests into logical groups using the
groupconstruct. - Configuring test execution options, such as platforms and timeouts, in
dart_test.yaml. - Understanding how lifecycle methods like
setUpandtearDownaffect test isolation.
Key capabilities
- Test Structure: Defining tests and organizing them into nested groups.
- Lifecycle Methods: Utilizing
setUp,tearDown,setUpAll, andtearDownAllfor managing test state. - Configuration: Configuring the Dart test runner through the
dart_test.yamlfile, including platforms, tags, and timeouts. - File Naming: Understanding the required naming convention (
*_test.dart) for test files.
Example prompts
- "Show me how to create a group of tests in Dart."
- "Explain how to configure timeout settings using
dart_test.yaml." - "What is the purpose of the
setUpmethod in a Dart test?"
Tips & gotchas
- Test files must end with
_test.dartand reside within thetest/directory to be recognized by the test runner. - Avoid wrapping all tests in a single group at the file level.
- Named parameters for tests (e.g.,
testOn,timeout) should be placed immediately after the description string for improved readability.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.