Open noah-berman opened 2 months ago
Notes:
@umpox we have a newTestSuitePrompt that specifically asked the LLM not to include any imports if there is an existing test file, since the new test suite is appended to the file. Maybe we can remove it to support "add all missing imports"?
Version
v1.15.1714144471 (pre-release)
Describe the bug
Customer has reported that, for both sample TypeScript and Python files, "Generate Tests" has correctly populated valid unit tests, but instead of adding an
import
statement at the top of the file it simply lists the path of the new test file:Expected behavior
Test file should have an
import
statement to correctly import the function/method in questionAdditional context
Customer is using Cody Pro with freshly spun-up TypeScript and Python repositories for testing. Client has tried switching LLMs across Sonnet, Opus, GPT-3.5 Turbo, and GPT-4 Turbo