- Open the project settings, and then click Coverage. The Coverage page opens.
-
Define how the collected coverage data will be processed:
- To have the Code Coverage dialog box shown every time you launch a new run configuration with code coverage, choose Show options before applying coverage to the editor.
- To discard the new code coverage results, choose Do not apply collected coverage.
- To discard the active suites and use the new one every time you launch a new run configuration with code coverage, choose Replace active suites with the new one.
- To have the new code coverage suite appended to the active suites every time you launch a new run configuration with code coverage choose Add to active suites.
-
Define the behaviour of the Coverage tool window when an application or test is run with coverage:
- To have the Coverage tool window opened automatically, select the Activate Coverage View check box.
- To open the Coverage tool window manually, clear the Activate Coverage View check box.
- Open the Edit Run/Debug Configuration dialog box, add the desired run/debug configuration, and click the Code Coverage tab. Note that the Code Coverage tab appears in the run/debug configuration dialogs boxes, when rcov gem is downloaded and attached to your project.
- In the Code Coverage tab, define the following options:
- If necessary, select the check box Do not use the optimized C runtime. You have to do it with discretion, since this option being turned on, significantly slows performance down.
- Create the patterns, which will define the files to be included into or
excluded from code coverage measurement. Each pattern is represented by a list of the comma-delimited
Ruby regular expressions. You can add as many patterns are needed.
You can opt to turn each pattern on of off by selecting the check box to its left. - If you want to measure code coverage in the directories that are marked as the test sources, select the corresponding check box.
3.2+
- Open the Editor - Colors and Fonts page of the Settings dialog.
Alternatively, just click
in the statistics pop-up. - Expand Colors and Fonts node, and select General.
- In the list of textual components, select the required type of coverage, for example, Full line coverage or Uncovered line,
and then choose the desired colors:


