Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CodiumAINew to Visual Studio Code? Get it now.

CodiumAI

Preview

CodiumAI - Generate Meaningful Tests

|
1,197 installs
| (13) | Free
CodiumAI analyzes your code and generates meaningful tests to catch bugs before you ship
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodiumAI - Meaningful tests for busy devs


CodiumAI analyzes your Python code and generates meaningful tests to catch bugs before you ship. With Codium, you can easily and quickly create comprehensive test suites that help you ensure the reliability and correctness of your software.


How it works

Closed Alpha Version 0.4.2 - Supported in VSCode version 1.58.0 and above

Features

🤖 Generates unit tests automatically

Simply press the "generate tests" button above your Python class or function, and CodiumAI will generate a set of suggested tests for different use cases.

✨ Works seamlessly with VSCode

The generated tests will be displayed in a new tab in your VSCode IDE, along with your code description, so you can easily review and edit them as needed.

🚀 Helps you improve code quality

By creating comprehensive test suites, our tool helps you catch and fix bugs early, and ensures that your code is reliable and maintainable.


Installing

Install

Successful installation

Github Login page step one

Github Login page step two


Getting started

Review the results

Modify test style

Modify test cases

Regenerate tests

Accept and enjoy


  1. After installation, you should receive a notification on the bottom of the VSCode editor. Click "Sign in" button in the notification popup to activate Codium with your GitHub account. If you can't see the notification on the bottom right of the editor window, click the button labeled Codium in the bottom status bar.

  2. You will be redirected to the GitHub login page.

  3. Once you confirm the activation you should be redirected back to the editor. Status notification should show your GitHub username when the activation was successful.

  4. Open existing Python file or write a new Python class/function and press the "Generate Tests" on top of the class/function.

  5. A new tab will open in your VSCode IDE with the generated tests, along with your code analysis, test plan, and test code.

  6. Modify the test style in the Plan Instructions dropdown and re-generate tests in the new style.

  7. Modify the test cases list to fully control generated tests. Remove the cases you don't need, add suggested cases from the "Additional Test Cases" list, and add your own test cases. After each edit re-generate tests to get a new list of test code.

  8. "Accept" to add the generated tests to a new file.

Tip 1: If you can't see the Generate Tests button you might have to set "editor.codeLens": true, in your VSCode configuration file.

Tip 2: You can show and hide Codium panel in the extension settings or from the command palette.

Pro Tip: Edit the test strategies and redo tests to improve the quality of the next tests generation.

Tip show panel


## How to uninstall
  1. Select "Codium" button in the bottom status bar.
  2. Hover over the authentication notification, select the settings icon and "Manage Extension" option from the dropdown.
  3. Codium Extension will open in a new tab. Select Uninstall and Reload VSCode.

Links

Join our Discord community

  • Discord community: https://discord.gg/SgSxuQ65GF
  • Code examples: https://raw.githubusercontent.com/Codium-ai/codium-code-examples
  • Project homepage: https://codium.ai
  • Blog: https://www.codium.ai/blog

Terms of use

  • Terms of use: https://www.codium.ai/terms-of-use
  • Privacy policy: https://www.codium.ai/platform-privacy-policy
  • Please notice - similar to other popular generative-AI tools (such as copilot), we also transmit code snippets to our servers.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft