Design is in the Code

by José Carlos Joaquim

KIF - Square's iOS Integration Testing

tagged in: iOS, Square, Integration Testing

KIF - Square's iOS Integration Testing
KIF – Square’s iOS Integration Testing

If you have unit tests1 in your iOS apps, which you should, and want to simulate user interaction you’re surely using Instruments’ UI Automation2 which consists of one, or more, Javascript file(s) containing those tests. Yes, it seems odd to use Javascript to perform UI tests inside an iOS application.
So you have to, at least, know two different programming languages and take the time to know how to traverse your UI hierarchy, with Javascript, in order to get the correct element for each of those interactions.

All that testing should now be easier as the guys at Square released KIF, the “Keep It Functional” framework. The short description:

(…) We developed KIF to meet a few goals:
- KIF requires minimal setup to run a test suite
- KIF lets you develop your tests in the same language as the rest of your code to minimize learning and adaptation layers
- KIF can be easily extended to fit your needs
- KIF works in continuous integration (CI) setups

Read the post in their blog and get it at https://github.com/square/KIF.

@joshaber is porting KIF to run with MacOS applications. Check it out.

1 Unit Testing Applications

2 UI Automation

blog comments powered by Disqus

About me

Hello, my name is José Carlos Joaquim and I'm a iOS and Ruby developer working in Paris. I'm passionate about my wife and kids, technology and I really appreciate cheese.

more about me…