ipmcc
ipmcc

Reputation: 29886

Why aren't scopes that throw exceptions showing as covered in gcov/CoverStory?

I'm using the coverage tools in Xcode 4.6 and visualizing with CoverStory. No matter what I do, CoverStory never shows scopes in which I throw Objective-C exceptions as being covered, even though, when running the Unit Tests with breakpoints on those lines, I hit the breakpoints, and the tests (which expect the throws) all pass.

Is there some setting I need to set to make the coverage tools see this?

EDIT: I found CoverStory's exclusion flags here. Still seems odd to me that it doesn't see this line as getting executed. Why is that?

Upvotes: 4

Views: 342

Answers (0)

Related Questions