Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>GeM Code2UT VSCode Extension for PythonNew to Visual Studio Code? Get it now.
GeM Code2UT VSCode Extension for Python

GeM Code2UT VSCode Extension for Python

SX-EDI-MM__SX-PJ-GenAI-MM

|
1 install
| (1) | Free
An extension that integrates with GitHub Copilot for advanced code fixes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GeM | Code2UT | Code to Unit Test Assist - VS Code Extension

A Visual Studio Code extension that automates unit test generation and execution using GenAI. It intelligently analyzes source code to create and run comprehensive test cases, enhancing development efficiency, code reliability, and overall quality.


Intended for internal use by Bosch employees only

Overview

The GeM Code2UT extension offers an intuitive interface for developers to generate and execute unit tests directly within VS Code. Supporting multiple programming languages and testing frameworks, it ensures broad compatibility across projects. Key features include:

  • Code Analysis: Understands code structure and logic.
  • Unit Test Generation: Automatically creates unit tests based on code analysis.
  • Test Execution: Runs generated test cases directly within the extension.
  • Quality Assurance: Promotes best practices and comprehensive code coverage.

Features

  • AI-Powered Test Generation: Utilizes advanced AI models to generate unit tests
  • Multi-Language Support: Compatible with Python, C, C++, .Net, C#, Java, JavaScript, Angular, ReactJS, TypeScript and more
  • Robust Templates: Offers comprehensive and unique prompting strategies
  • Seamless Integration: Operates directly within the VS Code environment
  • Test Execution: Executes generated test cases within the extension
  • Versioned Releases: Regular updates enhance functionality and add features

Installation

  1. Download the .vsix file for the desired version from our release.
  2. Open Visual Studio Code.
  3. Go to the Extensions tab by clicking on the Extensions icon in the Activity Bar on the side of the VSCode window.
  4. Click on the ... menu in the top-right corner of the Extensions view and select Install from VSIX....
  5. Select the downloaded .vsix file and install the extension.
  6. Restart extensions, and wait until extension setup is complete. Success of this setup reflects in a temporary banner that appears at the bottom right of the screen.
  7. Good to go, the extension can be used with your project.

Prerequisites & System Requirements

  1. Visual Studio Code System Requirements, latest version of VSCode
  2. Github Copilot Access
  3. Bosch Proxy enabled

Usage

  1. Open a project in Visual Studio Code.
  2. Highlight the code for which you want to generate unit tests.
  3. Right-click and select Generate test cases using GeM Extension from the right-click menu.
  4. Choose your desired prompt from the context menu that appears at the top of your screen.
    1. Main prompt: Generate Comprehensive test cases. This covers statement and branch coverage, and should be enough to use.
    2. Boundary Conditions: Helps further enhance coverage with boundary-focused tests, can be used by the developer if the developer finds the need for the same.
    3. Line Coverage: Helps further maximize line coverage, can be used by the developer if the developer finds the need for the same.
    4. Branch Coverage: Helps further maximize branch coverage, can be used by the developer if the developer finds the need for the same.
    5. Exception Coverage: Helps further test exception scenarios thoroughly, can be used by the developer if the developer finds the need for the same.
    6. Integration Coverage: Helps further test integration and side effects, can be used by the developer if the developer finds the need for the same.
    7. Performance Coverage: Helps further test performance and scalability, can be used by the developer if the developer finds the need for the same.
  5. A new file with unit test cases is generated. Save the test case file. Review and customize the generated unit tests as needed.
  6. Generate, review and enhance code coverage, via guuidance, orchestration and interactions with Github Copilot. Copilot chat will guide you with all instructions step-wise.

To note, the user will have to ensure proper activation of virtual environment inside the Copilot Terminal of VSCode, in order to enable seamless automated flow of commands to and from Copilot.


Note: GeM Code2UT uses AI to generate and run unit tests, but you're fully responsible for your code and the generated tests. Always review outputs to ensure they align with your project’s standards.


Support

For support or inquiries, please contact the development team at:

GeM Connect (SX/PJ-GenAI-MM) | Connect.GeM@in.bosch.com

Copyright

Copyright (c) 2025 Bosch Global Software Technologies Private Limited. All rights reserved. Proprietary and confidential. A creation by the SX/EDI-MM & SX/PJ-GenAI-MM team, BGSW.

Unauthorized copying of this file, via any medium is strictly prohibited. This code is proprietary to Bosch Global Software Technologies and shall not be copied, reproduced, modified, or distributed without prior written permission.


Contributing

SX/NE-MM | PJ-GenAI-MM | SX/EDS-MM


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