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.
Closed Alpha Version 0.4.2 - Supported in VSCode version 1.58.0 and above
🤖 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.
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.
You will be redirected to the GitHub login page.
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.
Open existing Python file or write a new Python class/function and press the "Generate Tests" on top of the class/function.
A new tab will open in your VSCode IDE with the generated tests, along with your code analysis, test plan, and test code.
Modify the test style in the Plan Instructions dropdown and re-generate tests in the new style.
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.
"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.
## How to uninstall
Select "Codium" button in the bottom status bar.
Hover over the authentication notification, select the settings icon and "Manage Extension" option from the dropdown.
Codium Extension will open in a new tab. Select Uninstall and Reload VSCode.