Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Test Pilot AINew to Visual Studio Code? Get it now.
Test Pilot AI

Test Pilot AI

sulthan1869

|
7 installs
| (0) | Free
Generate test cases, and test automation code from guidelines, source code, or a URL
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Test Pilot

Generate test cases and test automation code from feature specs, source code, or URLs using AI.

Features

  • AI-Powered Test Case Generation: Generate comprehensive test cases from requirements, source code, or web pages
  • Interactive Test Case Review: Review and approve generated test cases in a dedicated webview panel
  • Automated Test Code Generation: Generate test automation code for approved test cases

Requirements

  • VS Code 1.103.0 or higher
  • GitHub Copilot Chat extension

Usage

Generate Test Cases

  1. Open GitHub Copilot Chat (Cmd+Shift+I or Ctrl+Shift+I)
  2. Type @testpilot /testcases followed by:
    • Feature specifications
    • Source code snippets
    • A URL to analyze
    • Or attach files using the paperclip button
  3. Review generated test cases in the Test Pilot panel
  4. Select the test cases you want to approve

Generate Test Automation Code

  1. After approving test cases, type @testpilot /lazy-automate
  2. Choose a stack:
    • Default Web: Playwright + Cucumber (TypeScript)
    • Default Mobile: WDIO + Cucumber (TypeScript)
    • Custom: Provide your own stack instructions
  3. The automation code will be generated in the chat

Generate Mock Data

  1. Type @testpilot /mockdata with an API endpoint description or response schema
  2. Mock data fixtures will be generated for use in test API mocking

Generate Selectors

  1. Type @testpilot /selectors with a page URL or component description
  2. Playwright selectors will be generated based on the page or component structure

Generate Code

  1. Type @testpilot /codegen with a feature or component description
  2. Code will be generated based on your input

Commands

  • Open Test Pilot - Open the Test Pilot webview panel

Extension Settings

This extension contributes the following chat participant:

  • @testpilot - Chat participant for test case and automation code generation
    • /testcases - Generate test cases as JSON from your input
    • /lazy-automate - Generate test automation code for approved test cases
    • /mockdata - Generate mock data fixtures for API endpoint mocking in tests
    • /selectors - Generate Playwright selectors for a given page or component
    • /codegen - Generate code for a given feature or component

Known Issues

None at this time. Please report issues on the GitHub repository.

Release Notes

0.0.3

  • Renamed /generate to /testcases and /automate to /lazy-automate
  • Added /mockdata command for generating mock data fixtures
  • Added /selectors command for generating Playwright selectors
  • Added /codegen command for generating feature/component code
  • Refactored prompts from Markdown files to TypeScript modules

0.0.1

Initial release:

  • Test case generation from specs, code, and URLs
  • Interactive test case review and approval
  • Test automation code generation with multi-stack support

Enjoy testing with Test Pilot! 🧪✈️

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