Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>UnitTestAINew to Visual Studio Code? Get it now.
UnitTestAI

UnitTestAI

Paterson Anaccius

|
3,671 installs
| (2) | Free
AI powered Unit Tests generator, powerful and easy to use. Works with all programming languages
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

UnitTestAI - AI Powered Unit Tests Generator

UnitTestAI is a VScode extension that allows developers to automatically generate unit tests for their code using AI.

Image of how to use

To use the extension, simply install it from the VScode Marketplace, set up your access token as described below, and start generating tests for your code.

Setting up the Access Token

Before you can start generating tests with UnitTestAI, you'll need to set up an access token. Here's how to do it:

  1. Go to the UnitTestAI website and log in with your GitHub account.
  2. Once you're logged in, go to the "My Account" page.
  3. Under the "VSCode Extension Access Token" section, click the "Copy Token" button. (That will copy the access token to your clipboard.)

Now that you have your access token, you can use it to configure the UnitTestAI extension in VScode:

  1. Open VScode and go to the "Preferences" menu.
  2. Click on "Settings" and search for "Extensions".
  3. In the extensions search for "UnitTestAI".
  4. Under "Access Token", paste the access token you copied earlier.

Image of access token setup

That's it! You're now ready to start generating tests with UnitTestAI. Simply select a block of code, right-click, and choose "Generate Tests" from the context menu to automatically generate unit tests for your code.

How to use the extension ?

After setting up the extension with your access token, you can select any block of code, right-click, and choose "Generate Tests" from the context menu.

Image of how to use

Features

UnitTestAI uses the current file extension to detect the programming language of the selected code block. Once the language is detected, the extension provides the user with a list of related test frameworks to choose from.

This means that developers can use UnitTestAI with any programming language and any test framework they prefer. They simply select the code they want to test, let the extension detect the language, and choose the appropriate framework.

This feature makes UnitTestAI extremely versatile and user-friendly, allowing developers to use their preferred tools and workflows without having to learn a new framework or language-specific testing techniques.

Enjoy!

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