# General dependencies

Dependencies required for running tests should be in the project configuration. Additional libraries may also be necessary depending on the project under test. For version information, see [Specs & Reqs](/get-started/specs-and-reqs.md).

<table data-full-width="false"><thead><tr><th width="309">Dependency</th><th>Description</th></tr></thead><tbody><tr><td>Test Framework</td><td>See <a data-mention href="/pages/1OerX7oZFKXcyMPs8pGU">/pages/1OerX7oZFKXcyMPs8pGU</a>.</td></tr><tr><td>Surefire Plugin<br><code>org.apache.maven.plugins:</code><br><code>maven-surefire-plugin</code></td><td>When using Maven and junit-jupiter-engine.</td></tr><tr><td>JUnit Launcher<br><code>org.junit.platform:</code><br><code>junit-platform-launcher</code>)</td><td>When using junit-jupiter-engine, unless using Maven, Spring, or Spring Boot.</td></tr><tr><td><p>Spring Boot Test</p><p><code>org.springframework:</code><br><code>spring-boot-test</code></p></td><td>When using Spring Boot ( <code>org.springframework:spring-boot</code>).</td></tr><tr><td>Spring Test<br><code>org.springframework:</code><br><code>spring-test</code></td><td>When using Spring ( <code>org.springframework:spring-core</code>) unless using Spring Boot.</td></tr><tr><td>Mockito<code>org.mockito:</code><br><code>mockito-core</code></td><td>For mocking using Mockito.</td></tr></tbody></table>

Other dependencies listed below may be needed, if they are transitive dependencies of your project. If one of these dependencies is required but missing, tests will be generated for some classes but not others. A message will appear in the console output indicating a missing dependency. For version information, see [Specs & Reqs](/get-started/specs-and-reqs.md).

| Dependency                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------- |
| <p>Java Servlet API</p><p><code>javax.servlet:javax.servlet-api</code> or<br><code>jakarta.servlet:jakarta.servlet-api</code></p> |
| <p>JSR107 API and SPI</p><p><code>javax.cache:cache-api</code></p>                                                                |
| <p>Spring Boot Starter Test</p><p><code>org.springframework.boot:spring-boot-starter-test</code></p>                              |
| <p>Spring Security Config</p><p><code>org.springframework.security:spring-security-config</code></p>                              |
| <p>Spring Web MVC</p><p><code>org.springframework:spring-webmvc</code></p>                                                        |


---

# 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://cover-docs-preview.diffblue.com/features/cover-plugin/project-configuration/general-dependencies.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.
