Troubleshooting

Log file

The Diffblue Cover IntelliJ plugin creates and maintains a log file, cover-plugin.log, to help the user better understand the tool's behavior and for debugging purposes.

The log file can be found in the following locations:

Windows: %USERPROFILE%\AppData\Local\Temp\diffblue\log

Linux/macOS: /tmp/diffblue/log

Test classes location

If a test source directory exists in the current IntelliJ module, Diffblue Cover will insert it there. Otherwise it will explore the modules in the project which depend on the module for which a test is generated. If any dependent module contains a test source directory, Cover will put the generated test class there. If no existing test source directory could be found in any dependent project, Cover will generate a new test sources directory. It will be created in the path src/test/java in the same module as the class for which tests are generated. The only exception to this case is if the module is named in a fashion that suggests a different project hierarchy (e.g. main), in which case the test source directory is created in the project root as src/test/java.

Please note that in the final case described above the created test class may not compile, as Diffblue Cover does not create new modules and the existing root module may not have a dependency on the module in which the class under test is located. We recommend to always explicitly create a test source directory in the module or one of its dependent modules such that Cover knows where to put new test classes.

"ERROR StatusLogger No Log4j 2 configuration file found"

This error is a known logging issue that doesn't affect the performance of the plugin.

Delete the settings files of the IntelliJ Plugin

If it is necessary to start from a clean state for the IntelliJ Plugin, the existing Plugin settings files should be deleted. This might be necessary when upgrading from previous versions of the Plugin, where the settings files could become stale and prevent the Plugin from correctly producing tests. The Plugin settings files are stored in the user's IntelliJ profile directory; the default location is dependent on OS and IntelliJ edition and version:

IntelliJ Community Edition:

Windows: %USERPROFILE%\.IdeaIC2019.x

Linux: ~/.IdeaIC2019.x

IntelliJ Ultimate Edition:

Windows: %USERPROFILE%\.IntelliJIdea2019.x

Linux: ~/.IntelliJIdea2019.x

To delete the Plugin settings, perform the following steps:

  1. Close any open sessions of IntelliJ
  2. Navigate to the appropriate IntelliJ profile directory (as detailed above)
  3. Navigate further to the subdirectory: config/options
  4. Delete all of these files if they are present:
    • CoverAnalyticsInstallationID.xml
    • CoverSettingsConfig.xml
    • CoverTirIndexes.xml
    • coverVersions.xml
  5. Restart IntelliJ

results matching ""

    No results matching ""