iosobjective-ciphoneunit-testingocmock

OCMock3 Integration Issue with IOS


enter image description here

I added OCMock framework in my project and I wasn't able to take test Success or fail and code coverage.

I got Error like "Error Generating Code Coverage"

Anybody knows OCMock Integration with steps please help in this.

I tried alot for Integration with OCMock.

Thanks in advance!!!

This is the code that I have tried:

id obj = OCMClassMock([NSString class]); 
[obj length]; 
[[obj reject] length];

I followed the tutorials at the following links:

http://ocmock.org/ios/

http://iosunittesting.com/adding-ocmock-to-a-project/


Solution

  • Thanks to all who one helped here.

    Error :

    1. Adding Library
    2. Adding framework

    Resolution pod 'OCMock', '~> 3.4'

    Pod Installation only resolves my problem.