4 ms·
Ok, this might be somewhat dumb; I'm just starting to get into testing. How does KIF[1] compare to Kiwi[2]? -- [1]: http://corner.squareup.com/2011/07/ios-int
by angerman 15y ago
Ok, this might be somewhat dumb; I'm just starting to get into testing. How does KIF[1] compare to Kiwi[2]?
--
[1]: http://corner.squareup.com/2011/07/ios-integration-testing.html http://corner.squareup.com/2011/07/ios-integration-testing.h...
[2]: http://http://www.kiwi-lib.info/ http://http://www.kiwi-lib.info/
- spindel 15y agoKiwi is for unit testing, KIF is for integration testing. They don't do the same thing (nor try to). Since you said you're just starting to get into it, here's what that means: Integration tests simulate a user using your app - tapping on controls, manipulating views, typing in text, etc (see the video in the blog post). As these steps run you have simple tests to make sure the app is behaving as you expect it to. Unit tests exercise more discrete things like model objects, controller logic, validations. Tons of small tests like "when we add these money values together, is the sum what we expect?". At Square we use KIF for integration tests and GHUnit for unit tests. We run both on a continuous integration system (CruiseControl.rb) that runs the tests whenever we push new code.