CodiumAI - Meaningful tests for busy devs
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. It supports all languages!
SUPPORTS ALL PROGRAMMING LANGUAGES
Generate tests using CodiumAI:
You can also trigger CodiumAI by right-clicking and choosing CodiumAI:
Beta Version - Supported in VSCode version 1.70.0 and above
Explore our new CodiumAI Chat!
🌟 NEW! Explore two of our upcoming Teams plan features, available for a limited time!
Prepare for Pull Request using our new CodiumAI Chat!
Easily get PR descriptions, automated reviews for your PR, automatic commit messages, and branch-diff improvement suggestions before opening your pull request. Try out our new chat feature today! See how it works:
Extend your current test suites
Already have a test suite? Let CodiumAI help you with adding missing tests to it! Currently supporting Python, JS and TS. See how it works:
🤖 Generate unit tests suite automatically
🔬 Analyze your code
💡 Suggest code modifications to improve the performance and correctness of your code
💫 Find potential bugs in your code and suggest ways to fix them
📄 Add docstring automatically and enhance your code
🚀 Help 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.
How to use CodiumAI?
Generate tests for a function, a class, or a method using the
Generate tests for code snippets by selecting the code you want to test, right-clicking on it, choosing the
Watch tutorial -> https://youtu.be/BxFuKFX_KSA
Review the results
CodiumAI tab will present the test results - review the test names, objectives, types, and the test code:
Explore behavior coverage
CodiumAI generates a behavior list of your code and marks each behavior as covered or not covered based on the generated test. The number of covered behaviors calculates the coverage percentages. You can refresh the coverage when you modify your test suite (add, remove, or modify tests):
For each behavior, explore its sub-behaviors for more test variations:
Add tests for uncovered behavior
For behaviors that are not covered by tests, you can click on the
Add more behaviors
Missing a behavior? Simply add new behaviors and generate tests for them:
Watch tutorial -> https://youtu.be/xHwIvCjvQDI
Want to modify a single test code? Simply type the change you want inside the
You can also click the
You can manually edit the test within the panel:
Want more tests? Click on
You can focus on code changes from your uncommitted changes, read the code explanation of your changes and generate tests for them:
Want to remove a test from your test suite? Click on the
Run your tests and find possible bugs in your code
You can run the generated tests directly from the CodiumAI panel. Simply click
The test failed? See the log by clicking the
When TestGPT identifies possible bug in your code, it alerts you and gives you relevant information on the bug and possible fix, click on
After analyzing, click
Review the suggested fix, and if you approve it, click
Watch tutorial -> https://youtu.be/l_ITy2_KDZ0
Change test suite configurations
Improve and personalize your test suite by giving general instructions, providing examples of tests and selecting your preferred testing framework in the
Save your test suite
When you're happy with your generated test suite, you can click on
CodiumAI Chat - NEW!
Use our chat commands to improve your code! See how it works:
Explain your code
Get a detailed code explanation on every component or code snippet you want, using CodiumAI chat command /explain:
Enhance your code
Choose the component you want to enhance, or select the relevant lines, and choose /enhance command in our CodiumAI chat. You can add additional instructions as a free text.
Choose the component you want to add docstring to, or select the relevant lines, and choose /docstring command in our CodiumAI chat. You can add additional instructions as a free text.
Get improvement suggestions
Get suggestions to improve your code correctness and robustness, by choosing /improve command in CodiumAI chat. You can add additional instructions as a free text.
Report a bug
Encountered a bug with CodiumAI? Please report it to us via email at firstname.lastname@example.org, through our Discord channel, or by opening a GitHub issue. Be sure to include your request ID in your report. You can find and copy this ID from the CodiumAI panel:
How to uninstall