aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.48k stars 413 forks source link

codewhisperer: how to generate a test script #3901

Closed OverloadedStudioTech closed 11 months ago

OverloadedStudioTech commented 11 months ago

System details (run the AWS: About Toolkit command)

Question

How can i directly make an entire test script by a comment input

leigaol commented 11 months ago

Hi @OverloadedStudioTech , to generate unit tests of File AClass.java, you need to name the test file AClassTest.java, for better recommendation quality, you also need to provide function names as prompt, for example:

Screenshot 2023-10-16 at 12 33 50 PM
OverloadedStudioTech commented 11 months ago

Cool! Thanks