AppCode 2021.2 Help

Viewing code coverage results

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

View code coverage results

  1. Create a testing run/debug configuration, select it in the Run/Debug Configurations list, and click the Run with Coverage button the Run with Coverage button.

  2. Click Run | Show Code Coverage Data. Alternatively, press ⌃ ⌥ F6.

  3. View coverage results:

  4. Open in the editor the files you want to explore.

  5. Use the color indicators in the gutter to detect the uncovered lines of code.

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

    View coverage results in the editor
Last modified: 12 October 2021