mardi 7 juillet 2015

Xcode 7 Code coverage - what does blue progress and grayed out lines mean?

Within my project after I run the tests I get in my coverage tab:

enter image description here

Then when I tap on the gray arrow for distanceTitle():

enter image description here

And for static method findLocationWithIdentifier():

enter image description here

And for non static method deliveryInfo():

enter image description here

Now the questions are:

  1. DBLocation.distanceTitle is fully covered (blue progress bar is fullfilled) - Does it mean 100% coverage for that method?.

  2. When I am inside that method, it is grayed out, and on the right side there is number 0. What does it mean?

  3. Why my findLocationWithIdentifier method is white, and next to it is number 70? Why that function is not grayed out, since it is called such 70 times? Am I wrong?

  4. What about static method? I called them within code, but here progress bar is 0% and within code it is white.

What does it mean? How to read following:

  • blue progress bar
  • grayed out lines
  • number next to lines in code
  • why static method are no computed to the coverage value?

For me it looks like the values are reversed to the progress bar. Am I right or not?

Aucun commentaire:

Enregistrer un commentaire