AppCode 2019.2 Help

Configure code coverage measurement

Configure code coverage behavior

  1. In the Preferences dialog (⌘,), click Coverage under Build, Execution, Deployment.

  2. Define how the collected coverage data will be processed:

    • To have the Code Coverage dialog 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 the active suites.

  3. 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 checkbox.

    • To open the Coverage tool window manually, clear the Activate Coverage View checkbox.

Configure code coverage colors

  1. In the Preferences dialog (⌘,), navigate to Editor | Color Scheme | General. Alternatively, click the Edit Coverage Colors button in the popup that opens on clicking the coverage indication line in the left gutter.

  2. In the list of components, expand the Line Coverage node and select a type of coverage: for example, Full, Partial or Uncovered. Click the Foreground field to open the Select Color dialog. Select a color and click Apply.

    Configure code coverage colors

Last modified: 25 July 2019

See Also