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