design is in the code

KIF - Square's iOS Integration Testing

If you have unit tests[1] in your iOS apps, which you should, and want to simulate user interaction you’re surely using Instruments' UI Automation[2] 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:

bq. (…) 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 “":

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

fn1. “Unit Testing Applications”:

fn2. “UI Automation”: