Links

Spring configuration options

Spring configuration options for Diffblue Cover Plugin for IntelliJ.
Spring configuration options for the Cover Plugin for IntelliJ can be configured via the "Spring" section within settings. In IntelliJ go to IntelliJ IDEA > Settings > Diffblue Cover > Test Creation > Spring (macOS) or File > Settings > Diffblue Cover > Test Creation > Spring (Windows/Linux).

Active profiles

There's an option to specify any Spring profiles to activate while creating tests. You can specify multiple profiles by giving a comma separated list of profiles, for example: development for a single profile; or development,test for multiple profiles.
If you do not specify this option, then the default Spring profile will be used.

Allow mocking in Spring integration tests

There are cases where classes need dependencies injected for us to successfully generate tests. An example of this can be seen in the Mocking section of the Cover Example Tests topic. This option is disabled by default.

Use Spring contexts in tests

When enabled, Spring contexts for dependency injection will be used to create tests. This option is enabled by default.