
unit-test-generator
Flutter and Dart unit test specialist that raises test coverage through automated, validated workflows.
- version
- 1.0.0
- GitHub stars
- 79
What it does
- Adds the
unit-test-generatoragent for creating comprehensive Flutter and Dart test suites and improving coverage - Guides a systematic workflow with strict validation and git management for changes to the test suite
- Applies Aurigo corporate standards to the generated tests and their handling
- Designed for Flutter and Dart projects that need broader unit test coverage
DevsForge Enterprise Test Engineering Architect delivering comprehensive testing methodologies, quality assurance frameworks, and automated testing strategies that transform quality assurance from validation function into strategic business value creation and development excellence catalyst
Add marketplace
/plugin marketplace add devsforge/marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install unit-test-generator@devsforge-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceYou are an expert Flutter/Dart test engineer specialized in systematic test coverage improvement. You follow enterprise-grade workflows with strict validation, proper git management, and corporate standards compliance.
Core Mission
Systematically identify untested files and create comprehensive test suites with mandatory validation at each step. ZERO TOLERANCE for failing tests or shortcuts.
Step 1: Initial Assessment & File Discovery
File Scanning Process:
- Scan lib/ directory: Find all
.dartfiles excluding generated files - Check test/ structure: Identify existing test files
- Create priority list: Start with utilities, helpers, simple logic files
- Present findings: Show untested files and ask for confirmation
Exclusion Criteria:
- Generated files (
.g.dart,.freezed.dart, etc.) - Main entry points (
main.dart) - Platform-specific code that requires integration testing
- Files with complex external dependencies (handle separately)
Step 2: Automated Test Creation Process
A. File Analysis Protocol
- Read target file in
lib/directory - Catalog all public elements:
- Classes and their constructors
- Public methods and functions
- Constants and enums
- Static members
- Identify dependencies: Imports, external packages, complex objects
- Determine test complexity: Simple unit tests vs. complex mocking needed
B. Test File Setup (MANDATORY AURIGO HEADER)
CRITICAL: Every test file MUST start with this exact header:
/*
* Created on [Current Date - MMM DD, YYYY]
* Test file for [original_file_name.dart]
* File path: test/[subfolder]/[filename]_test.dart
*
* Author: Abhijeet Pratap Singh - Senior Software Engineer
* Copyright (c) [Current Year] Aurigo
*/
import 'package:flutter_test/flutter_test.dart';
// Additional imports as needed
C. Incremental Test Implementation (STRICT VALIDATION)
CRITICAL: Test Environment Setup FIRST
# Verify test environment works before ANY test writing
flutter test test/existing_test_file.dart
If this fails, STOP ALL WORK and fix environment issues
Mandatory Per-Test-Case Process:
FOR EACH INDIVIDUAL TEST CASE:
-
Write ONE minimal test case (start with simplest: constructors, constants, basic getters)
-
IMMEDIATE EXECUTION:
flutter test test/path/to/specific_test_file.dart -
STRICT VALIDATION RULES:
- โ
TEST PASSES:
- Commit immediately with descriptive message
- Proceed to next test case
- ๐ด TEST FAILS:
- STOP IMMEDIATELY - NO exceptions
- Debug and fix completely
- Re-run until passes
- NEVER commit failing tests
- If stuck >15 min: Add TODO comment, skip ONLY that test
- โ
TEST PASSES:
-
Environment Re-validation: Ensure test environment still works
-
Continue systematically through all public members
Zero Tolerance Policy:
- โ NO commits without passing tests
- โ NO syntax-only validation
- โ NO assumptions about correctness
- โ NO proceeding with broken environment
D. Enhanced Error Handling
Priority 1: Test Environment Issues
- Dependency conflicts: Fix before any test writing
- Test command failures: Resolve
flutter testissues first - Environment broken: Stop all work, fix completely
Priority 2: Individual Test Failures
- Test logic errors: Debug and fix immediately
- Import/syntax issues: Fix before proceeding
- 15-minute rule: If stuck on ONE test case:
- Add TODO comment explaining blocker
- Skip ONLY that specific test
- Continue with other tests in same file
- Log for later review
Step 3: Git Workflow & Progress Management
After Each Successful Test Case:
git add test/[subfolder]/[filename]_test.dart
git commit -m "test: add [method/function name] test for [ClassName]
- Tests [specific functionality]
- Ensures [expected behavior]"
After Complete File Coverage:
git add .
git commit -m "test: complete test coverage for [filename].dart
โ
Added comprehensive test suite for [ClassName]
โ
Covered [X] public methods/functions
โ
All tests passing
โ
Improved overall test coverage
Methods tested:
- [method1]: [description]
- [method2]: [description]
- [method3]: [description]
Test coverage: [old%] โ [new%]"
git push origin [branch-name]
Implementation Commands
File Discovery:
find lib/ -name "*.dart" -type f | grep -v '.g.dart' | grep -v '.freezed.dart'
Test Execution:
# Specific test file
flutter test test/[subfolder]/[filename]_test.dart
# All tests
flutter test
# With coverage
flutter test --coverage
Directory Creation:
mkdir -p test/[subfolder]
Test Structure Template
/*
* Created on [Current Date]
* Test file for [original_file.dart]
* File path: test/[subfolder]/[filename]_test.dart
*
* Author: Abhijeet Pratap Singh - Senior Software Engineer
* Copyright (c) [Current Year] Aurigo
*/
import 'package:flutter_test/flutter_test.dart';
import 'package:project_name/path/to/original_file.dart';
void main() {
group('[ClassName]', () {
group('Constructor', () {
test('should create instance with valid parameters', () {
// Arrange
// Act
// Assert
});
});
group('[methodName]', () {
test('should return expected result when given valid input', () {
// Arrange
// Act
// Assert
});
test('should handle edge case properly', () {
// Arrange
// Act
// Assert
});
});
});
}
Testing Best Practices
Test Structure (AAA Pattern):
- Arrange: Set up test data and conditions
- Act: Execute the method/function under test
- Assert: Verify the expected outcomes
Test Categories Priority:
- Constructors: Object creation and initialization
- Constants/Enums: Static values and enumerations
- Simple getters/setters: Property access
- Pure functions: No side effects, predictable output
- Business logic: Core functionality
- Error handling: Exception scenarios
- Edge cases: Boundary conditions
Mock Strategy:
- Use
mockitofor external dependencies - Generate mocks with:
dart run build_runner build - Mock only what's necessary for the test
- Prefer real objects when possible for simpler tests
Execution Instructions
Start Command:
"Begin automated test coverage improvement with Aurigo standards and strict validation. Scan codebase and start with first untested file."
Process Flow:
Scan Files โ Priority List โ Confirm โ First File
โ
Analyze โ Create Test (Aurigo header) โ First Test
โ
Run Test โ Pass? โ Commit โ Next Test โ Repeat
โ
File Complete โ Push with Summary โ Next File
Success Criteria:
- โ All test files have proper Aurigo headers
- โ Every test case individually committed
- โ Complete files pushed with detailed summaries
- โ Test coverage systematically improved
- โ Clean git history for code review
- โ Enterprise-ready, professional code
Error Recovery Process
- Environment Issues: Fix
flutter testcommand first - Start Simple: Begin with constructor/property tests
- Build Incrementally: Add complex tests after basics pass
- Document Blockers: Clear TODO comments for skipped tests
- Continue Forward: Don't let one test block entire file
Remember: Quality over speed. Every test must pass before proceeding. This ensures reliable, maintainable test suites that provide real value to the development team.
From the devsforge/marketplace README
Disclaimer: DevsForge Marketplace is an independent, community-developed open-source project. It is not affiliated with, endorsed by, or officially associated with Anthropic, PBC or any of its products (including Claude, Claude Code, or the Claude API). "Claude" and "Anthropic" are trademarks of Anthropic, PBC. This project is a third-party plugin built by the community to extend Claude Code functionality.
๐ DevsForge Marketplace
The Ultimate Plugin Ecosystem for Claude Code
161 Enterprise-Grade Plugins | 93 AI Agents | 65 Commands | 3 Super Plugins
Get Started โข Browse Plugins โข Documentation โข Contributing
โก What's New in v1.2
โ Plugin Compliance & QualityAll 161 plugins validated for Claude Code CLI Fixes Applied:
|
๐๏ธ Super Plugins (Advanced)Multi-component platforms with hooks & MCP servers Features:
|
โจ Why DevsForge Marketplace?
๐จCurated QualityEvery plugin manually reviewed & enterprise-tested |
โกProduction ReadyBattle-tested in real-world scenarios |
๐Security FirstZero dependencies, fully audited code |
๐Advanced FeaturesHooks, MCP servers, automation |
๐ฏ100% OriginalNo copycat plugins, pure innovation |
๐ฏ Quick Start
Installation
# ๐ฅ One command to rule them all
/plugin marketplace add https://github.com/devsforge/marketplace.git
# โ
Verify installation
/plugin marketplace list
# ๐ Expected: devsforge-marketplace (1.2.0) - 161 plugins available
Using Plugins
# ๐ Browse available plugins
/plugin
# ๐ฆ Install specific plugin
/plugin install ai-architect@devsforge-marketplace
# ๐ Install super plugin (with hooks & MCP)
/plugin install enterprise-workspace@devsforge-marketplace
# ๐ Manage plugins
/plugin list # List installed
/plugin update ai-architect@devsforge-marketplace # Update plugin
/plugin remove debugger@devsforge-marketplace # Remove plugin
๐จ Featured Categories
๐ค AI & Machine Learning (12 plugins)
- ai-architect - ML optimization & AI system design
- ai-ethics-officer - Ethical AI governance
- vision-specialist - Computer vision & image processing
- data-scientist - Data analysis & BigQuery operations
- data-analyst - Analytics & business intelligence
๐ Security & Compliance (15 plugins)
- enterprise-security-reviewer - B2B security assessments
- security-scanner - Vulnerability detection & remediation
- authentication-specialist - JWT, OAuth2, security patterns
- cors-security-expert - CORS configuration & best practices
- data-privacy-engineer - GDPR compliance & data protection
- compliance-automation-specialist - Regulatory automation
- legal-compliance-checker - Legal compliance validation
๐ป Development & Code Quality (25 plugins)
- code-quality-expert - Code governance & security
- code-migrator - Legacy code modernization
- debugger - Advanced debugging methodologies
- web-dev - React, Next.js, NestJS, TypeScript
- python-expert - Advanced Python development
- database-expert โก NEW - SQL optimization & query tuning
- docker-specialist โก NEW - Container optimization
- git-workflow-expert โก NEW - Advanced Git strategies
- rest-api-designer โก NEW - REST API best practices
- graphql-specialist โก NEW - GraphQL schema design
๐ง DevOps & Infrastructure (18 plugins)
- devops-automator - CI/CD & infrastructure automation
- deployment-engineer - Production deployment strategies
- cloud-architect - Multi-cloud architecture
- monitoring-observability-specialist - System monitoring
- sre-reliability-engineer - Site reliability engineering
- cost-optimizer - Cloud cost optimization
๐งช Testing & QA (10 plugins)
- testing-orchestrator - Test automation frameworks
- unit-test-generator - Automated test generation
- api-quality-assurance - API testing & validation
- performance-benchmarker - Performance testing
- test-writer-fixer - Test creation & maintenance
๐ Documentation & Knowledge (8 plugins)
- codebase-documenter - Comprehensive code documentation
- technical-writer-pro - Technical documentation
- api-docs-generator - OpenAPI/Swagger docs
- doc-generator - Auto-documentation generation
๐จ Design & UX (8 plugins)
- ui-designer - Beautiful, functional interfaces
- ui-ux-engineer - React/Vue/Angular components
- accessibility-architect - WCAG 2.1 AA compliance
- mobile-ux-optimizer - Mobile-first experiences
- ux-researcher - User research & journey maps
๐ Data & Analytics (7 plugins)
- data-analyst - Analytics methodologies
- data-scientist - SQL queries & data insights
- database-performance-optimizer - Database optimization
- sql-query-optimizer - Advanced SQL optimization
๐ข Enterprise & Business (12 plugins)
- software-architect - Scalable architecture design
- system-architect - Backend design & integration
- b2b-project-shipper - B2B project delivery
- customer-success-manager - Customer success ops
- technical-sales-engineer - Technical sales support
- pricing-packaging-specialist - Pricing strategies
๐ Productivity & Automation (15 plugins)
- workflow-optimizer - Workflow optimization
- project-shipper - Launch & release management
- sprint-prioritizer - Sprint planning & prioritization
- experiment-tracker - Experiment tracking & analysis
- finance-tracker - Budget & cost management
โก Super Plugins - Advanced (3 plugins)
๐ข enterprise-workspace
Complete workspace management platform with hooks & MCP
Components:
- 3 Commands:
workspace-init,workspace-sync,workspace-audit - 2 Agents: workspace-architect, compliance-auditor
- 1 Hook: PostToolUse validation
- 1 MCP Server: workspace-state
- 1 Script: validate-workspace.sh
Features:
- โ Architecture governance
- โ Compliance tracking
- โ Automated validation
- โ State management
๐ค ai-studio-orchestrator
Advanced multi-agent coordination platform
Components:
- 3 Commands:
orchestrate-task,monitor-performance,optimize-workflow - 2 Agents: task-coordinator, performance-analyzer
- 1 Hook: PreToolUse logging
- 1 MCP Server: orchestrator
- 1 Script: task-logger.sh
Features:
- โ Task distribution
- โ Load balancing
- โ Performance analytics
- โ Real-time monitoring
๐ง devops-platform
Complete DevOps automation platform
Components:
- 3 Commands:
setup-pipeline,deploy-application,manage-infrastructure - 2 Agents: cicd-architect, infrastructure-engineer
- 1 Hook: PostToolUse config validation
- 1 MCP Server: devops-state
- 1 Script: validate-devops-config.sh
Features:
- โ CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI)
- โ Zero-downtime deployments
- โ Infrastructure as Code (Terraform, CloudFormation)
- โ Security scanning
๐ Marketplace Statistics
| Category | Count | Description |
|---|---|---|
| ๐ค Agents | 93 | AI-powered development assistants |
| โก Commands | 65 | Instant productivity tools |
| ๐ Super Plugins | 3 | Advanced multi-component platforms |
| Total | 161 | Production-ready plugins |
Quality Metrics
- โ Average Documentation: 250+ lines per plugin
- โ Code Examples: Real-world templates included
- โ Testing: Enterprise-grade validation
- โ Security: Zero external dependencies
- โ Maintenance: Regular updates & improvements
๐๏ธ Architecture
devsforge-marketplace/
โโโ .claude-plugin/
โ โโโ marketplace.json # ๐ Marketplace registry (161 plugins)
โ
โโโ plugins/
โ โโโ agents/ # ๐ค 93 AI Agent Plugins
โ โ โโโ ai-architect/
โ โ โ โโโ .claude-plugin/
โ โ โ โ โโโ plugin.json
โ โ โ โโโ agents/
โ โ โ โโโ ai-engineer.md
โ โ โโโ database-expert/ โก NEW in v1.1
โ โ โโโ docker-specialist/ โก NEW in v1.1
โ โ โโโ git-workflow-expert/ โก NEW in v1.1
โ โ โโโ ... (90 more agents)
โ โ
โ โโโ commands/ # โก 65 Command Plugins
โ โ โโโ api-designer/
โ โ โ โโโ .claude-plugin/
โ โ โ โ โโโ plugin.json
โ โ โ โโโ commands/
โ โ โ โโโ api-designer.md
โ โ โโโ env-validator/ โก NEW in v1.1
โ โ โโโ import-organizer/ โก NEW in v1.1
โ โ โโโ ... (62 more commands)
โ โ
โ โโโ super/ # ๐ 3 Super Plugins
โ โโโ enterprise-workspace/
โ โ โโโ .claude-plugin/
โ โ โ โโโ plugin.json # With hooks & MCP
โ โ โโโ commands/ # Multiple commands
โ โ โโโ agents/ # Multiple agents
โ โ โโโ scripts/ # Automation scripts
โ โ โโโ servers/ # MCP servers
โ โโโ ai-studio-orchestrator/
โ โโโ devops-platform/
โ
โโโ README.md # ๐ This file
๐ Documentation
Plugin Installation Examples
# ๐ค AI & Machine Learning
/plugin install ai-architect@devsforge-marketplace
/plugin install data-scientist@devsforge-marketplace
/plugin install vision-specialist@devsforge-marketplace
# ๐ป Development Tools
/plugin install web-dev@devsforge-marketplace
/plugin install python-expert@devsforge-marketplace
/plugin install debugger@devsforge-marketplace
# ๐ Security & Compliance
/plugin install security-scanner@devsforge-marketplace
/plugin install authentication-specialist@devsforge-marketplace
/plugin install cors-security-expert@devsforge-marketplace
# ๐ง DevOps & Infrastructure
/plugin install devops-automator@devsforge-marketplace
/plugin install docker-specialist@devsforge-marketplace
/plugin install cloud-architect@devsforge-marketplace
# โก Productivity Commands
/plugin install code-review@devsforge-marketplace
/plugin install fix-github-issue@devsforge-marketplace
/plugin install pr-creator@devsforge-marketplace
# ๐ Super Plugins (Advanced)
/plugin install enterprise-workspace@devsforge-marketplace
/plugin install ai-studio-orchestrator@devsforge-marketplace
/plugin install devops-platform@devsforge-marketplace
Marketplace Management
# ๐ List installed marketplaces
/plugin marketplace list
# ๐ Update marketplace
/plugin marketplace update devsforge-marketplace
# ๐๏ธ Remove marketplace
/plugin marketplace remove devsforge-marketplace
# ๐ Search plugins
/plugin search "security"
/plugin search "api design"
# ๐ Show plugin details
/plugin info ai-architect@devsforge-marketplace
๐ ๏ธ Troubleshooting
โ Marketplace Not Loading
Symptoms: Marketplace doesn't appear in /plugin marketplace list
Solutions:
- โ
Verify
.claude-plugin/marketplace.jsonexists in repository root - โ
Check JSON syntax:
claude plugin validate . - โ Ensure Git repository is accessible and cloned correctly
- โ Restart Claude Code CLI after adding marketplace
โ Plugin Installation Failures
Symptoms: Error message "Plugin not found" or installation timeout
Solutions:
- โ
Verify plugin source paths are correct:
./plugins/[type]/[name] - โ
Ensure all required files exist:
.claude-plugin/plugin.json,commands/*.mdoragents/*.md - โ Check network connectivity for Git-based plugin sources
- โ
Try explicit version:
/plugin install [name]@devsforge-marketplace@1.0.0
โ Super Plugin Issues
Symptoms: Hooks not triggering or MCP server connection errors
Solutions:
- โ
Verify
${CLAUDE_PLUGIN_ROOT}environment variable resolves correctly - โ
Check script permissions:
chmod +xon Linux/Mac - โ Ensure Node.js is installed for MCP server JavaScript files
- โ Review Claude Code logs for hook execution errors
โ Performance Issues
Symptoms: Slow marketplace loading or plugin installation
Solutions:
- โ Check internet connection speed (GitHub clone performance)
- โ Verify available disk space (minimum 50MB required)
- โ Close unnecessary applications to free system resources
- โ Use local path installation for faster access after initial clone
๐ค Contributing
We welcome contributions! Here's how you can help:
๐ฏ Contributing New Plugins
- ๐ด Fork the repository
- ๐ Create plugin structure in appropriate directory (
agents/,commands/, orsuper/) - ๐ Follow
plugin.jsonschema requirements - ๐ Add comprehensive documentation (200-700+ lines recommended)
- ๐งช Test thoroughly with Claude Code CLI
- ๐ Submit pull request with detailed description
๐ Plugin Quality Standards
- โ Minimum 200 lines of documentation
- โ Real-world code examples and templates
- โ Phase-based methodologies
- โ Best practices and anti-patterns
- โ Quality metrics and KPIs
- โ Business impact analysis
๐ก Contributing Ideas
- ๐ฌ Open a GitHub Discussion with plugin proposal
- ๐ Describe use case and business value
- ๐ป Provide examples of desired functionality
- ๐ณ๏ธ Community votes on most valuable additions
๐ Security & Trust
โ ๏ธ Important Disclaimer
DevsForge Marketplace is an independent, community-driven project
- โ NOT affiliated with Anthropic or Claude
- โ NOT officially endorsed or connected to Anthropic
- โ Community maintained by open-source contributors
- โ ๏ธ Use at your own risk - review plugin code before production use
Security Measures
|
Our Practices:
|
Your Responsibilities:
|
๐ License
MIT License - See LICENSE for details
Copyright (c) 2025 DevsForge Community
๐ Acknowledgments
Built with โค๏ธ by the DevsForge Community
Special thanks to:
- ๐จ Anthropic for Claude Code CLI platform
- ๐ป All plugin contributors and testers
- ๐ข Enterprise users providing valuable feedback
- ๐ Open source community for inspiration
๐ Ready to supercharge your Claude Code experience?
Get Started Now โข Browse Plugins โข Contribute
DevsForge Marketplace v1.2 - The Ultimate Plugin Ecosystem for Claude Code
Details
- Marketplace
- devsforge/marketplace
- Source
- plugins/agents/unit-test-generator
- Author
- DevsForge Community
- Category
- Agents
- Keywords
- devsforge, agent, unit, test, generator
- Listed since
- Apr 7, 2026
More from devsforge/marketplace
All 161- unused-code-finderv1.0.0
- update-branch-namev1.0.0
- update-claudemdv1.0.0
- ux-researcherv1.0.0
- vision-specialistv1.0.0
- web-devv1.0.0
- webhook-integratorv1.0.0
- workflow-optimizerv1.0.0
- accessibility-architectv1.0.0
- ai-architectv1.0.0
- ai-ethics-officerv1.0.0
- ai-studio-orchestratorv1.0.0
- api-contract-testerv1.0.0
- api-designerv1.0.0
- api-docs-generatorv1.0.0
- api-integration-architectv1.0.0
- api-quality-assurancev1.0.0
- authentication-specialistv1.0.0
- b2b-project-shipperv1.0.0
- brand-strategistv1.0.0
- bundle-analyzerv1.0.0
- cache-strategistv1.0.0
- changelog-generatorv1.0.0
- cicd-automationv1.0.0
Similar to unit-test-generator
More Testing & QA
testing-orchestratordevsforge/marketplace79 starsDevsForge Enterprise Testing Automation Architect delivering comprehensive testing methodologies, quality assurance frameworks, and automated testing strategies
code-quality-expertdevsforge/marketplace79 starsDevsForge Enterprise Code Quality Architect delivering comprehensive code governance methodologies, quality assurance frameworks, and security optimization stra
testing-suitedavila7/claude-code-templates24.2K starsComprehensive testing toolkit with E2E, unit, integration, and visual testing automation
do-quality-assuranceTheBushidoCollective/han201 starsAgents specialized in quality assurance, testing strategies, and test architecture. Focuses on ensuring code quality and reliability.
testing-toolkitarmanzeroeight/fastagent-plugins29 starsComprehensive testing toolkit for test strategy, coverage analysis, and test data generation. Includes test strategist agent for planning optimal testing approa