Viewing code coverage helps you detect pieces of your source code that are not affected by simulation.

  1. Do one of the following:
  2. View coverage results:
  3. Open in the editor the files you want to explore.
  4. Use the color indicators in the to detect the uncovered lines of code.

    ruby_code_coverage

  5. To find out how many times a line has been hit, click the line in the gutter area.

    py_viewHits

    The pop-up window that opens shows the statistic on hits. Use the following buttons:

    • Click arrows to jump to the next/previous groups of covered or uncovered lines.
    • Click the settings button settingsCoverage to open the General page of the Colors and Fonts settings.
    • Click close.png to hide coverage information.
  6. Create missing tests, as described in the section Creating Tests.

See Also

Concepts:

Procedures:

Reference:

Web Resources: