/quick-test
¶
Description¶
The /quick-test
command initiates an iterative and interactive mode for generating test suites for your code. Unlike the comprehensive approach of the /test-suite
command, /quick-test
focuses on quickly producing a basic set of tests covering key behaviors. Users can fine-tune the generated tests through natural language chatting in a thread, allowing for precise customization until the desired test suite is achieved.
How to Use¶
To efficiently use the /quick-test
command, follow these steps:
-
Select Current File Focus: Available exclusively in Current File Focus,
/quick-test
is designed to provide rapid test generation for specific segments of code within a single file. -
Select Your Secondary Focus: Identify the code segment you wish to test. This selection is crucial for ensuring that the generated tests are relevant and targeted.
-
Initiate the Command: Type
/quick-test
in the chat interface. Codiumate then analyzes the selected code segment and generates a few behaviors, which are printed in the chat interface along with the initial test suite covering these behaviors. This quick generation aims to give you an immediate understanding of what aspects of the code are being tested. If you require additional behaviors to be tested, you can request more directly in the thread. This initiates an iterative process where Codiumate and you collaboratively refine and expand the test suite to meet your needs fully. -
Refine the Test Suite: Engage in a threaded conversation with Codiumate to specify adjustments to the test suite. This can include requests for testing additional behaviors, modifying existing tests, or clarifying the logic behind certain tests. Codiumate responds iteratively, refining the test suite according to your directions and feedback.
-
Finalize Your Test Suite: Continue this interactive refinement until the test suite satisfactorily covers all desired behaviors and test scenarios. This step concludes the process, ensuring the final test suite is comprehensive and tailored to your specific testing goals.
Available in
Threads
This command supports threading. Read more about Threads.