Automated test generation tool for TypeScript projects with AI agent integration. Provides comprehensive test analysis, validation, and error fixing capabilities.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A set of VS Code Language Model tools for autmated test generation with AI agents.
Designed for the Azure Build Health API Repository
Overview
This extension provides three specialized tools that work seamlessly with AI agents (GitHub Copilot) to achieve comprehensive test coverage with high-quality, maintainable tests:
Analyze Test Requirements - Analyzes source files and existing tests to provide intelligent guidance
Run Test Validation - Executes tests, validates coverage, and identifies issues with detailed reporting
Fix Test Errors - Analyzes errors and provides specific, actionable fix guidance
Key Features
AI Agent Optimized: Designed specifically for seamless AI agent integration
Workspace-Aware: Automatically detects and works with multiple workspace configurations
Coverage-Focused: Targets 100% test coverage with intelligent fallback to 80% minimum
Quality-First: Enforces ESLint rules and TypeScript compliance automatically
Pattern-Based: Uses proven test patterns from existing successful tests
Error-Specific: Provides targeted fixes for common error types and patterns
Zero Configuration: Works out-of-the-box with no user configuration needed
How It Works
Simply tell your AI agent what you want:
"Generate tests for these files to achieve 100% coverage"
The AI agent automatically:
Uses abh_analyze_test_requirements to understand test requirements and patterns
Generates appropriate tests following analyzed patterns and best practices
Uses abh_run_test_validation to check coverage and quality metrics
Uses abh_fix_test_errors if any fixes are needed
Iterates until 100% coverage and quality standards are achieved
Development
To work on the extension:
cd abh_tester
npm install
npm run compile
Prompt Files
The extension uses external prompt files for maintainability:
prompts/test-generation-guide.md - Core test generation patterns
prompts/test-analysis-guide.md - Test analysis and enhancement
This approach keeps prompts focused, maintainable, and ensures consistent high-quality test generation across the entire ABH repository.