Skip to content

Codium-ai/codiumai-vscode-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Codiumate

Code, test and review with confidence - your AI mate by CodiumAI

Twitter URL Discord Twitter URL

Elevate your coding experience with iterative test generation and intelligent code assistant, and efficient PR reviews, all smoothly integrated into your development workflow. Boost your productivity, code with confidence, and optimize your development process!

It supports all languages!


Generate tests using Codiumate:

How it works

You can also trigger Codiumate by right-clicking and choosing CodiumAI:

How it works

Beta Version - Supported in VSCode version 1.70.0 and above


Explore our new CodiumAI Chat!

Improve, understand and test your code with Code Assistant Chat

Code assistant will help you to /improve your code, add /docstring, wrtie /test, /explain your code and more. Check it out! Code assistant

Prepare for Pull Request with PR Assistant Chat (ProπŸ’Ž)

Easily get PR descriptions, automated reviews for your PR, automatic commit messages, and improvement suggestions for youe selected diff, before opening your pull request. See how it works:

PrePR

Extend your current test suites (ProπŸ’Ž)

Already have a test suite? Let Codiumate help you with adding missing tests to it! Currently supporting Python, JS and TS. See how it works:

Extend Test Suite


Features

πŸ€– 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

πŸ‘€ Prepare better for your PR

πŸš€ 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 Codiumate?

TL;DR:

  • Click on the CodiumAI button above a function/class/method name
  • Use CodiumAI chat to get code explanation, enhance your code, add docstring and get improvement suggestions to your code.
  • Use CodiumAI's keybinding shortcut - mac: cmd+ctrl+c | Linux: alt+shift+c | windows: ctrl+win+z
  • Right-click on your code -> Choose CodiumAI - and choose the desired command
  • Or just use the command palette and select CodiumAI - Generate Tests

Generate tests

Generate tests for a function, a class, or a method using the Test this class/function/method button above a function/class/method name:

Generate tests for code snippets by selecting the code you want to test, right-clicking on it, choosing the CodiumAI - and selecting the desired command:

Review the results

CodiumAI tab will present the test results - review the test names, objectives, types, and the test code:

Explore behavior coverage

Codiumate 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 Generate test button next to it, and Codiumate will generate a test for this behavior.

Add more behaviors

Missing a behavior? Simply add new behaviors and generate tests for them:

Modify tests

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:

You can also click the Regenerate button and get an alternative code for this test:

You can manually edit the test within the panel:

Want more tests? Click on Give me more tests at the bottom of the test suite:

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 delete button on each test:

Run your tests and find possible bugs in your code

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:

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 Configuration section:

Save your test suite

When you're happy with your generated test suite, you can click on Copy tests and copy the test suite code, or click on Open as a file and we will create a test file for you:

CodiumAI Chat - NEW!

Use our chat commands to improve your code! See how it works:

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.

Generate Docstring

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

Had a bug with Codiumate? Report us via email ([email protected]), Discord or open a GitHub issue, and provide us with your request ID. You can copy it from the CodiumAI panel:


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.


How to uninstall

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

Links

Join our Discord community

Terms of use