# 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-and-reqs](https://cover-docs.diffblue.com/get-started/specs-and-reqs "mention").

<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="test-framework-dependencies">test-framework-dependencies</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-and-reqs](https://cover-docs.diffblue.com/get-started/specs-and-reqs "mention").

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