CodiumAI analyzes your code and generates meaningful tests to catch bugs before you ship. With CodiumAI, you can easily and quickly create comprehensive test suites that help you ensure the reliability and correctness of your software. Supports Python, Javascript and Typescript.
Beta Version - Supported in VSCode version 1.70.0 and above
By creating comprehensive test suites, our tool helps you catch and fix bugs early, and ensures that your code is reliable and maintainable.
Generate tests for a function or a class, using the Generate tests
button above a function/class name, or using CodiumAI panel and choose the desired function/class:
Generate tests for code snippet, by selecting the code you want to test, right-click on it and choose CodiumAI - Generate Tests
option:
Watch tutorial -> https://youtu.be/BxFuKFX_KSA
CodiumAI tab will present the test results - review the test names, objectives, types, and the test code:
Want to modify a single test code? Simply type the change you want inside the Suggest changes..
field, and TestGPT will modify the code based on your request:
Want to modify the objective of a single test? Edit the name or the objective of a single test, and click regenerate:
You can also just click the Reflect & Regenerate
button, without changing the test description, and get an alternative code for this test:
You can manually edit the test within the paenl:
Want more tests? Click on Give me more tests
at the bottom of the test suite:
Want to remove a test from your test suite? Click on the delete
button on each test:
You can run the generated tests directly from the CodiumAI panel. Simply click Run All Tests
button to run all the test, or Run
button on each single test:
The test failed? See the log by clicking the failed
button, and easily fix the test by clickeing Fix Test
button:
When TestGPT identifies possible bug in your code, it alerts you and gives you relevant information on the bug and possible fix, click on Possible Code Bug
to see the data:
Click Fix Code
to get a possible fix to your bug:
After analyzing, click Review Fix
button to see the code diff:
Review the suggested fix, and if you approve it, click Apply to my Code
button merge it to your code:
Watch tutorial -> https://youtu.be/l_ITy2_KDZ0
Improve and personalize your test suite by giving general instructions, examples of input and tests and select your preferred testing framework in the Configuration
section:
Want to add a custom test that was not automatically generated? Click on New custom test
button and write the test name and objective, and TestGPT model will generate the test code for you, based on your preferences:
Read your code analysis written by our TestGPT model, you can use it for documentation and to make sure your code is doing what it should. Click on the Code Analysis
tab and find out:
Our TestGPT model can find some insights about your code and suggests some modifications that you can apply to your code (to improve performance, correctness, and more). Click on the Code Suggestions
tab and find out:
Choose the suggestion you want to apply, and merge them to your code:
Watch tutorial -> https://youtu.be/yK713au2MJk
When you're happy with your generated test suite, you can click on Copy tests
and copy the test suite code, or simply click on Open as a file
and we will create a test file for you:
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 CodiumAI panel in the extension settings or from the command palette.
- Select "CodiumAI" button in the bottom status bar.
- Hover over the authentication notification, select the settings icon and "Manage Extension" option from the dropdown.
- CodiumAI Extension will open in a new tab. Select Uninstall and Reload VSCode.
- Discord community: https://discord.gg/kG35uSHDBc
- CodiumAI site: https://codium.ai
- Blog: https://www.codium.ai/blog/
- Troubleshooting: https://www.codium.ai/blog/technical-faq-and-troubleshooting/
- Support: [email protected]
- Terms of use: https://www.codium.ai/terms
- Privacy policy: https://www.codium.ai/privacy-policy
- Please notice - similar to other popular generative-AI tools (such as copilot), we also transmit code snippets to our servers.