Unit Test
The Unit Test CodeGPT feature empowers you to generate unit tests for your code quickly. Selecting specific code segments can prompt CodeGPT to create a corresponding unit test, enhancing code reliability and quality.
- Select the Code: Highlight the code snippet
- Write the
/
slash and, selectUnit Test
, press Enter to send the request
Example
Select the code, right-click, then select Unit Test CodeGPT
CodeGPT: Unit Test CodeGPT