Wrong code coverage on of unit test
- by KamilPyc
I'm using code coverage for unit tests in Xcode. Everything is working except some special cases, for example protocol declaration shows wrong values.
If I have :
@protocol SomeProtocole <NSObject>
@property (nonatomic, readonly) NSObject *example;
@end
I will get 0% code coverage for this file. But I have unit test that is using class that conforms to that protocol.
Only solution I found so far is to filter code coverage raport to not include protocols. But I would like to see real values for protocols. Any one have some solution to fix it?