IntelliJ IDEA 11.1 Web Help

The following is available only in the Ultimate edition of IntelliJ IDEA

IntelliJ IDEA makes it possible to configure the various aspects of code coverage measurement. In this section:

To configure code coverage behavior
  1. Open the Coverage page of the Settings dialog.
  2. Click one of the radio buttons to define how the collected coverage data will be processed.
  3. If you want the Coverage tool window to open automatically on running an application or test with coverage, make sure that the corresponding check box is selected.
To configure code coverage options
  1. Open the Edit Run/Debug Configuration dialog box, add the desired run/debug configuration, and click the Code Coverage tab.
  2. In the Code Coverage tab, define the following options:
    • From the Choose coverage runner drop-down list, select the desired code coverage runner. The available options are:
      • EMMA
      • IntelliJ IDEA
    • Choose the options for the selected runner:
      • For the EMMA runner, only the Sampling mode is available.
      • For the IntelliJ IDEA runner, you can choose between the Sampling or Tracing modes.
    • Specify the scope to measure code coverage for. Do one of the following:
      • To specify a class, click the Add Class button.
      • To specify a package, click the Add Package button.
    • To have code coverage statistic collected for folders with tests as well, select the Enable Coverage in Test Folders check box.
11.0+↓
To configure code coverage colors
  1. Open the Editor - Colors and Fonts page of the Settings dialog.

    Alternatively, just click settingsCoverage in the statistics pop-up.

  2. Expand Colors and Fonts node, and select General.
  3. In the list of textual components select the required type of coverage, and then choose the desired colors:

    coverageColors

See Also

Concepts:

Procedures:

Reference:

Web Resources: