Test Formatting

The format of tests produced by Cover Plugin for IntelliJ can be configured via the "Test Formatting Options" within settings.

To configure the format of tests written by Cover Plugin, go to Diffblue > Change Settings > Test Formatting in IntelliJ.

IntelliJ Code Style Formatting Compatibility

It's important to note that the formatting of tests produced by Cover Plugin for IntelliJ, especially regarding indentation and other style settings, is in line with your current IntelliJ Code Style configurations. This ensures that the generated tests adhere to the code style settings you've set up in your IDE. If you experience formatting conflicts with other tools, such as Spotless, you might need to align your IntelliJ code style settings with those tools to maintain consistency.

You are able to turn off IntelliJ Code Style formatting through the Diffblue settings menu "Apply code style formatting". With this setting turned off tests will be formatted in a way that will match the output of Cover CLI.

Last updated

Was this helpful?