This repo showcases some examples of testing code in iOS.
- Check out objc.md and the accompanying sample project in
objc
folder. - Run
bundle install && cd objc/PracticaliOSTesting && bundle exec pod install
from the root of the repository. - Run the unit tests
PracticaliOSTestingTests
using iPhone 7 Plus simulator.
- Mock singleton using OCMock
- Test asynchronous callback
- Test block property invocation
- Test instance method invocation inside another instance method
- Test custom UIView with snapshot testing
- Test custom UITableViewCell
- Test View Controller's view
- Test invocation of third party library
Not yet implemented. Contribution appreciated.