# 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.

<figure><img src="https://3436682446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY2qxVf5VTm3fmwP4B4Gx%2Fuploads%2Fgit-blob-0dcee3722eac5de6502ac0b88780f7850daa5f43%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?v=ii6K5C4pg7E>" %}
