title: Is there a way to find coverage of UI test cases?
body: <p>I know how to check coverage of Unit test cases, we can see coverage for each <code>.swift</code> file in Xcode coverage report. but what about UI test cases?  </p>
  
  <p>As per my understanding, In unit test cases the subject being tested is a <code>.swift</code> file. if a file has class with 4 methods/functions. The unit test coverage of that file would be 100% only if all the 4 methods are being called from unit test cases. </p>
  
  <p>In UI test cases the subject is the View, Does interacting with all the UI elements leads to 100% coverage? How does coverage report for UI test work?</p>
  
  <p><strong>Edit:</strong>
  <a href="https://i.stack.imgur.com/CbKzT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CbKzT.png" alt="Unit test - uncovered code"></a>
  In Unit tests - I know that when few lines of function are not covered I see red overlay, here I know that I have to write unit tests for <code>screenshot</code> class method, line 56 in above attached image. Is there any similar mechanism in UI tests?</p>
  
  <p>In UI tests - How can we find which UI element is left uncovered? </p>