Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>TestGen Copilot - AI Test Engineering AssistantNew to Visual Studio Code? Get it now.
TestGen Copilot - AI Test Engineering Assistant

TestGen Copilot - AI Test Engineering Assistant

Ameenullah S

|
1 install
| (0) | Free
AI-powered test engineering assistant. Generate comprehensive test cases, automation code, coverage analysis, and push to Azure DevOps - all from your IDE.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🚀 TestGen Copilot — Enterprise Test Case Generator

AI-powered test engineering assistant that lives inside your IDE. Generate comprehensive test cases, automation code, coverage analysis, and push directly to Azure DevOps — all through GitHub Copilot Chat.

VS Code GitHub Copilot


✨ Features

Feature Command Description
🎭 Role-Based Output @testgen /role Adapts output for Manual Tester, Automation Engineer, Test Lead, or Business Analyst
🖥️ User Interface TestGen Copilot: Open Interface Dedicated UI for running commands and viewing outputs
🔍 Requirement Analysis @testgen /analyze Deep-dive analysis of requirements with ISTQB technique mapping
📝 Test Case Generation @testgen /generate 15+ structured test cases using EP, BVA, Decision Tables, State Transition, Error Guessing
🤖 Automation Code @testgen /automate POM-pattern code in Selenium, Playwright, Cypress, RestAssured, or Karate
📥 ADO Fetch @testgen /fetch Pull user stories/work items directly from Azure DevOps
📤 ADO Push @testgen /push Create Test Case work items in Azure DevOps with parent linking
📊 Coverage Dashboard @testgen /coverage Analyze test coverage by work item, area path, or sprint
🎯 Gap Analysis @testgen /gaps Find missing test cases and untested acceptance criteria
📋 Template Library @testgen /templates 9 pre-built templates (Login, CRUD, Search, API, Payment, etc.)
⚖️ Risk Prioritization @testgen /risk Risk-based priority matrix with MUST/SHOULD/COULD RUN categories
⭐ Feedback @testgen /feedback Rate output quality to help improve the agent
❓ Help @testgen /help Full capabilities guide and configuration status

🚀 Quick Start

1. Install

# From VSIX file:
code --install-extension testgen-copilot-1.0.0.vsix

# Or from marketplace (when published):
ext install equiniti.testgen-copilot

2. Configure

Open Settings (Ctrl+,) → search TestGen:

Setting Required Description
testgen.adoOrganization For ADO features Your Azure DevOps org name
testgen.adoProject For ADO features Your ADO project name
testgen.adoPAT For ADO features Personal Access Token
testgen.defaultRole Optional ManualTester / AutomationEngineer / TestLead / BusinessAnalyst
testgen.preferredFramework Optional Selenium Java / Playwright TS / Cypress JS / etc.
testgen.projectAbbreviation Optional TC-ID prefix (e.g., "EQX" → EQX-TC-001)
testgen.techStack Optional Your app stack (e.g., "React + .NET 8 + SQL Server")

3. Use

Option A: Use the interface (no chat commands)

  • Command Palette → TestGen Copilot: Open Interface
  • Or chat: @testgen /ui

Option B: Use Copilot Chat (existing flow) Open GitHub Copilot Chat (Ctrl+Shift+I) and type:

@testgen /help
@testgen /role manual tester
@testgen /analyze As a user, I want to login with email and password so I can access my dashboard
@testgen /generate
@testgen /automate

🎭 Role-Based Behavior

Role Output Style
Manual Tester Detailed step-by-step with exact click paths, specific test data, plain language
Automation Engineer BDD Gherkin + code stubs in preferred framework, POM pattern, data-driven
Test Lead Summary-level with effort estimates (S/M/L/XL), risk ratings, coverage matrices
Business Analyst Acceptance criteria validations, business language, traceability

🔄 Typical Workflow

1. @testgen /role automation engineer     ← Set your role
2. @testgen /ui                           ← Optional: open the interface
3. @testgen /fetch 12345                  ← Pull user story from ADO
4. @testgen /analyze                      ← Analyze the requirement
5. @testgen /generate                     ← Generate test cases (role-adapted)
6. @testgen /automate                     ← Generate Playwright/Selenium code
7. @testgen /risk                         ← Prioritize by risk
8. @testgen /push #12345                  ← Push to Azure DevOps
9. @testgen /feedback 5 Great output!     ← Rate the quality

📦 Embedded Knowledge Base

The extension includes 7 knowledge documents that are injected into prompts for high-quality output:

Document Purpose
ISTQB-Testing-Techniques.md EP, BVA, Decision Tables, State Transition, Error Guessing, Pairwise
Test-Case-Templates.md 9 template categories with 100+ pre-built test case outlines
Automation-Best-Practices.md POM pattern, locator strategies, framework templates
Company-Specific-Standards.md Naming conventions, ADO standards, priority guidelines
Accessibility-Checklist.md WCAG 2.1 AA checklist with 10 common test cases
Test-Strategy-Template.md Strategy template with entry/exit criteria
ADO-Boards-TestManagement-Reference.md ADO REST API reference, work item structure

🏗️ Project Structure

testgen-copilot/
├── package.json              # Extension manifest + chat participant + settings
├── tsconfig.json             # TypeScript configuration
├── src/
│   ├── extension.ts          # Entry point — registers @testgen participant
│   ├── handler.ts            # Command router
│   ├── types.ts              # TypeScript interfaces
│   ├── commands/             # 13 slash command handlers
│   │   ├── roleCommand.ts
│   │   ├── analyzeCommand.ts
│   │   ├── generateCommand.ts
│   │   ├── automateCommand.ts
│   │   ├── fetchCommand.ts
│   │   ├── pushCommand.ts
│   │   ├── coverageCommand.ts
│   │   ├── gapsCommand.ts
│   │   ├── templatesCommand.ts
│   │   ├── riskCommand.ts
│   │   ├── feedbackCommand.ts
│   │   ├── helpCommand.ts
│   │   └── uiCommand.ts
│   ├── prompts/              # AI prompt templates
│   │   ├── systemPrompt.ts
│   │   └── promptTemplates.ts
│   ├── services/             # External service integrations
│   │   └── adoService.ts
│   ├── knowledge/            # Knowledge base loader
│   │   └── knowledgeBase.ts
│   ├── state/                # Session state management
│   │   └── sessionState.ts
│   ├── webview/              # UI for non-chat usage
│   │   └── testgenPanel.ts
│   └── utils/                # Shared utilities
│       └── llmHelper.ts
├── knowledge/                # Embedded knowledge base files (7 documents)
│   ├── ISTQB-Testing-Techniques.md
│   ├── Test-Case-Templates.md
│   ├── Automation-Best-Practices.md
│   ├── Company-Specific-Standards.md
│   ├── Accessibility-Checklist.md
│   ├── Test-Strategy-Template.md
│   └── ADO-Boards-TestManagement-Reference.md
└── media/
    └── icon.png              # Extension icon

🔨 Development

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Watch mode
npm run watch

# Package as VSIX
npm run package

# Publish to marketplace
npm run publish

📋 Requirements

  • VS Code 1.93.0 or later
  • GitHub Copilot Chat extension installed and active
  • Azure DevOps PAT (optional — only for /fetch, /push, /coverage, /gaps commands)

🏢 Enterprise Distribution

Option 1: VSIX File (Simplest)

npm run package  # Creates testgen-copilot-1.0.0.vsix
# Share the .vsix file — users install with:
code --install-extension testgen-copilot-1.0.0.vsix

Option 2: Private Marketplace

Publish to your organization's private VS Code marketplace or Azure DevOps Artifact feed.

Option 3: Public Marketplace

npm run publish  # Requires vsce and publisher account

Wider Team Rollout Checklist

  1. Pilot validation (2–3 squads)
    • Run: @testgen /featuremine 12345 → @testgen /generate → @testgen /executor run playwright → @testgen /defectsync
    • Capture at least one successful and one failure-path run
  2. ADO connectivity baseline
    • Verify PAT or MCP mode setup using @testgen /help
    • Confirm bug create/update permissions in target project
  3. Guardrails baseline
    • Confirm testgen.maxInputChars is set to team standard
    • Confirm testgen.enableAuditLogs is enabled for rollout cohorts
    • Verify blocked prompts and redaction behavior in chat output
  4. Packaging and distribution
    • Build VSIX with npm run package
    • Share install command: code --install-extension testgen-copilot-1.0.0.vsix
  5. Hypercare (first 2 weeks)
    • Track failures with chat trace IDs shown in error messages
    • Review structured audit records from extension global storage (audit.log.jsonl)
    • Collect feedback via @testgen /feedback

📄 License

MIT — Built by Equiniti/Astrella QA Engineering Team

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft