Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide the code coverage annotation in Xcode?

The official documentation shows how to show the code coverage annotation (the bottom two images.) How can I hide it? I tried it by unchecking Code Coverage checkbox, it didn't hide it right after unchecking it, furthermore I mustn't uncheck it as it's enabled in our git repository.

like image 398
Display Name Avatar asked Feb 22 '17 07:02

Display Name


People also ask

How do I show Test coverage in Xcode?

To view the coverage reports: Select the Report Navigator in the navigator pane on the left (⌘8) Select the latest Test run in the navigator pane. Select the Coverage tab in the editor.

Where is code coverage in Xcode?

To see the code coverage report, open the Report Navigator on the left, select the report for the last test run, and open the Coverage tab at the top. You can see that Person.

How does Xcode measure code coverage?

To measure and visualize code coverage for a project, follow these steps: Enable code coverage date gathering. To do this, go to Product › Scheme › Edit Scheme... , and select Test from the left hand side menu. Under the Info section, check the Gather coverage data box.


2 Answers

You can hide show it from the menubar Editor->Hide Code Coverage

like image 110
Fiveagle Avatar answered Sep 27 '22 19:09

Fiveagle


In Xcode 13.1 it's in View -> Hide Code Review

enter image description here

like image 41
lbarbosa Avatar answered Sep 27 '22 19:09

lbarbosa