/quick-test
/quick-test
generates unit tests.
Use it to quickly create a basic set of tests covering key behaviors of your code.
Using /quick-test
Open a file: Open a file in your project.
Activate Qodo Gen: Click the Qodo Gen logo in the Extensions bar.
Focus: Select the part of the code you want to generate a quick test for. It could be a few lines of code, a method, an entire file, your local changes and more. Check out our Focus documentation to learn more.
Call the Command: Type
/quick-test
in the chatbox and hit the send key or click the arrow button.(Optional) Add optional instructions: You can give Qodo Gen any specific guidelines.
Result! Qodo Gen will generate a test tailored for your code.
(Optional) Continue your chat: To give Qodo Gen more instructions, just type a command or ask a question to keep chatting.
Example
Given this code snippet:
Command
Response
Qodo Gen will analyze your code, identifying key behaviors to create focused and effective test cases. Click on any behavior to understand its testing significance.
Last updated
Was this helpful?