GoLand 2020.3 Help

Managing code coverage suites

GoLand provides a tool to select coverage suites for showing or hiding, adding, and removing suites.

Select a coverage suite

The list of coverage suites becomes available after you run at least one test with coverage.

  1. From the main menu, select Run | Show Coverage Data (Ctrl+Alt+F6).

  2. Click Show selected. The dialog closes.

  3. In the editor, GoLand opens test coverage results for the selected test suites.

  4. To hide the coverage results, select the checkboxes next to the necessary classes and click No Coverage.

View code coverage results

Upload or remove a coverage suite

Consider a situation when a file that contains code coverage information has been obtained from the build server. You can load this file from a disk and examine it in GoLand. Also, you can analyze coverage data that has been generated by the IDE some time ago.

  1. From the main menu, select Run | Show Code Coverage Data (Ctrl+Alt+F6).

  2. Click the Add button and select the necessary .ic file in the dialog that opens.

    Files with coverage data generated by GoLand are saved to the coverage folder in the IDE system directory by default.

  3. To remove a suite from the list and from the storage, select it in the list and click the Delete button.

Last modified: 11 October 2020