Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>All Testcase GeneratorNew to Visual Studio Code? Get it now.
All Testcase Generator

All Testcase Generator

Rishabh Kanaujiya

|
2 installs
| (0) | Free
Generate edge-case test cases using Gemini and automatically evaluate your competitive programming solutions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Test Case Generator

Generate comprehensive, edge-case test cases using the Gemini API and automatically evaluate your competitive programming solutions right inside VS Code.

Features

  • Gemini Integration: Automatically parses competitive programming problem links and generates exactly 10 high-quality test cases, complete with descriptions explaining the specific edge cases being tested.
  • Auto-Execution: Directly runs your active solution file (supports Python, JavaScript/Node.js, C++, and Java) by feeding the generated inputs into stdin and verifying stdout.
  • Rich UI: View the generated test cases and their execution statuses in a beautiful, responsive Webview panel.

Usage

  1. Setup API Key: Create a .env file in the extension root directory and add GEMINI_API_KEY=your_api_key.
  2. Open your solution: Open your code file (e.g., solution.py or main.cpp).
  3. Open the Panel: Run the command Test Case Generator: Open Panel from the Command Palette (Ctrl+Shift+P).
  4. Generate: Paste the link to a LeetCode or Codeforces problem, and click Generate Test Cases.
  5. Run: Review the generated test cases, then click Run All Test Cases to execute them against your solution.

Supported Languages

  • Python
  • JavaScript (Node.js)
  • C++ (auto-compiles via g++)
  • Java

Requirements

  • You must have the respective language runtimes installed on your system (e.g., python, node, g++, java).
  • A Gemini API key.

Release Notes

1.0.0

  • Initial release of the Test Case Generator.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft