Generate Test Files with @Mentions
Additionally, you can generate test code in reference to similarly structured code or tests elsewhere.
When in the Chat functionality, request to generate tests for a specific file by hitting the @ symbol and selecting the relevant source code file.
Next, you can ask Tabnine to generate new tests in similar or the same formatting as in other files. Using the same @ call, select the test file you want Tabnine to use as a reference or template.
Then hit the ▶ to execute.
Above the text box, a list of referenced code functions will appear from the files you specified. This will allow you to double-check the generated test code and make changes if necessary.

Last updated
Was this helpful?