Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>GenTestXNew to Visual Studio Code? Get it now.
GenTestX

GenTestX

GenTestX

|
8 installs
| (0) | Free
VS Code extension for generating test cases using Groq AI
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GenTestX

A VS Code extension that analyzes your code and generates comprehensive test cases using Groq AI.

Features

  • Analyze code and generate test cases with a single click
  • Line-by-line code analysis with bug detection and fix suggestions
  • Automatic error detection with inline fix suggestions
  • File selection and analysis with detailed diagnostics
  • Integration with Groq API (LLaMA 3-70B model)
  • Support for multiple programming languages
  • React + TypeScript frontend
  • Secure API key handling
  • JSON-formatted test cases ready to implement
  • Keyboard shortcuts for quick access to all features

Installation

From VSIX

  1. Download the latest .vsix file from the releases page
  2. Open VS Code
  3. Go to Extensions view (Ctrl+Shift+X)
  4. Click on the "..." menu in the top-right corner
  5. Select "Install from VSIX..." and choose the downloaded file

From Source

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Copy .env.example to .env and add your Groq API key
  4. Run npm run watch to start the development server
  5. Press F5 to launch the extension in a new VS Code window

API Key Setup (Required)

GenTestX requires a Groq API key to function. You can get one for free at https://console.groq.com/.

Setting Up Your API Key

When you first use the extension, it will automatically prompt you to enter your API key. Simply click "Yes" and enter your Groq API key when prompted.

Manually Setting Your API Key

You can also set your API key manually in VS Code settings:

  1. Open VS Code settings (File > Preferences > Settings)
  2. Search for "GenTestX"
  3. Enter your Groq API key in the "Groq API Key" field

API Key Settings

For Developers

If you're developing the extension locally:

  1. Create a .env file in the root directory of the extension
  2. Add your Groq API key:
    GROQ_API_KEY=your_groq_api_key_here
    

Security Note

Your API key is stored securely in your VS Code settings and is never shared with anyone except Groq's API service. The extension does not include any hardcoded API keys.

Usage

Method 1: Using the Command

  1. Open a file with code you want to analyze
  2. Select the code you want to analyze (or don't select anything to analyze the entire file)
  3. Open the command palette (Ctrl+Shift+P or Cmd+Shift+P)
  4. Run the command "GenTestX: Analyze Code and Generate Tests"
  5. View the analysis results in the panel that opens

Method 2: Using the Sidebar

  1. Click on the GenTestX icon in the activity bar
  2. Paste your code in the input box
  3. Choose between Chat mode or GenTestx AI mode from the dropdown
  4. Click "Generate Test Cases" or type your prompt and click "Send"
  5. View the analysis results in the panel above

Method 3: Line-by-Line Analysis

  1. Open a file with code you want to analyze
  2. Place your cursor on the line you want to analyze
  3. Press Ctrl+Shift+L (or Cmd+Shift+L on Mac)
  4. View the analysis results in the notification
  5. Click "Fix Issue" if a fix is suggested

Method 4: Full File Analysis

  1. Open a file with code you want to analyze
  2. Press Ctrl+Shift+F (or Cmd+Shift+F on Mac)
  3. View the analysis results as diagnostics in the Problems panel
  4. Hover over the underlined code to see the issue details
  5. Click the lightbulb icon or press Ctrl+. to see and apply suggested fixes

Method 5: Select and Analyze File

  1. Press Ctrl+Shift+O (or Cmd+Shift+O on Mac)
  2. Select a file from the quick pick menu
  3. The file will open and be automatically analyzed
  4. View the analysis results as diagnostics in the Problems panel

Keyboard Shortcuts

Feature Windows/Linux Mac
Analyze Current Line Ctrl+Shift+L Cmd+Shift+L
Analyze Entire File Ctrl+Shift+F Cmd+Shift+F
Select and Analyze File Ctrl+Shift+O Cmd+Shift+O
Analyze Code and Generate Tests Ctrl+Shift+A Cmd+Shift+A
Show Code Fix Suggestions Ctrl+. Cmd+.

Development

Building

npm run build

Watching for Changes

npm run watch

Packaging

npm run package

Publishing

npm run publish

License

MIT

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