Knowledge Base > IntelliJ Plugin > Test classes location
Test classes location
The tests created by the Diffblue Cover IntelliJ plugin will be placed in a location within the project according to the following:
- If a test source directory (
src/test/java
) exists in the current project module, Diffblue Cover will add the tests there (project_root/module/src/test/java
). - If no existing test source directory could be found in any dependent module, Diffblue Cover will create a new test source directory in the same module as the class for which tests are written (
project_root/module_for_MUT/src/test/java
).
We recommend always explicitly creating a test source directory src/test/java
in the relevant module so that the Diffblue Cover IntelliJ plugin knows where to put new test classes.
Diffblue Cover does not add a duplicate test if exactly the same test already exists.