forcedotcom / Einstein-GPT-for-Developers

Einstein GPT For Developers
BSD 3-Clause "New" or "Revised" License
33 stars 8 forks source link

Generating test methods creates a test class even when running the prompt from within an existing test class. #5

Closed shivan-mohan closed 1 year ago

shivan-mohan commented 1 year ago

When I submit a prompt to generate an Apex test method, I get an Apex class in response even when I am running the prompt from within an existing test class.

Repro Steps:

Navigate to an existing Apex test class file. Run the command from the Command Palette Input prompt like: create test method to mock callout Actual Response:

GPT Test Method

Expected Response: Response should not generate the class declaration if running within a class

GPT Test Method
mingxuanzhangsfdx commented 1 year ago

Thank you for your feedback! This is a known issue and we are working on resolving it.

cromwellryan commented 1 year ago

@shivan-mohan and @mingxuanzhangsfdx, I'm going to close this in preference of #1. Thank you for the very descriptive report!