GoLand 2026.3 Help

Configuring code coverage measurement

Configure code coverage behavior

  1. Press Ctrl+Alt+S to open settings and then select Build, Execution, Deployment | Coverage.

  2. Choose how to display new coverage results when a coverage suite is already active:

    • Show options before applying coverage to the editor: show the Code Coverage dialog to choose how to display the new results.

    • Do not apply collected coverage: keep the current coverage display without showing the new results.

    • Replace active suites with the new one: show only the new suite. The previous suites remain available.

    • Add to the active suites: add new code coverage suites to the active suites every time you launch a new run configuration with code coverage.

    These options do not delete coverage data. You can select saved suites in Run | Manage Coverage Reports. If no suite is active, GoLand displays the new results automatically.

  3. Select the Activate Coverage View checkbox to open the Coverage tool window automatically.

Change colors of the coverage highlighting

  1. Press Ctrl+Alt+S to open settings and then select Editor | Color Scheme | General.

  2. Alternatively, click the Edit Coverage Colors button in the popup that opens on clicking the coverage indication line in the gutter.

  3. In the list of components, expand the Line Coverage node and select a type of coverage: for example, Full, Partial or Uncovered.

  4. Click the Foreground field to open the Select Color dialog.

  5. Select a color, apply the changes, and close the dialog.

Configure code coverage colors
29 September 2026