Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>ABH Test GeneratorNew to Visual Studio Code? Get it now.
ABH Test Generator

ABH Test Generator

Azure Build Health

|
32 installs
| (0) | Free
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.
Copied to clipboard
More Info

ABH Test Generator

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:

  1. Analyze Test Requirements - Analyzes source files and existing tests to provide intelligent guidance
  2. Run Test Validation - Executes tests, validates coverage, and identifies issues with detailed reporting
  3. 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:

  1. Uses abh_analyze_test_requirements to understand test requirements and patterns
  2. Generates appropriate tests following analyzed patterns and best practices
  3. Uses abh_run_test_validation to check coverage and quality metrics
  4. Uses abh_fix_test_errors if any fixes are needed
  5. 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/error-fix-guide.md - Error resolution strategies
  • 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.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft