What is the meaning of rectangle areas with stripes, while having test coverage enabled in Xcode? What is the meaning of rectangle areas with stripes, while having test coverage enabled in Xcode? xcode xcode

What is the meaning of rectangle areas with stripes, while having test coverage enabled in Xcode?


The striped rectangles indicate partial code coverage. Somebody just asked this question elsewhere and in looking at some test cases, I realized that if you hover your mouse over a line with the stripes, you get something like this:

Partial code coverage

As you'll notice, part of the line is green and part of it is red. The green part is for the condition which comes under code coverage since that part was executed. The red part is for the error message which was not executed since the test passed. Hope that makes sense?