# 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="/files/Imj9bwTvLjcZ3RxqGQFX" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tabnine.com/main/getting-started/tabnine-testing/generate-test-files-with-mentions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
