cd path/to/project $ pod init $ vim Podfile target "BDDKiwi" do ! end ! target "BDDKiwiTests" do pod 'Kiwi/XCTest' # Xcode 5 end $ pod install $ open project.xcworkspace
important. • You want to test units of code and not your entire app (those would be integration tests). • You don’t want your tests to depend on network connectivity • Server responses should remain the same, and server should have its own Unit Tests Suite.
important. • You want to test units of code and not your entire app (those would be integration tests). • You don’t want your tests to depend on network connectivity • Server responses should remain the same, and server should have its own Unit Tests Suite. • You want tests to be fast
a method for another • This way you can have an object return what you want, effectively replacing it • Useful to set conditions for a given test case • You can avoid depending on other methods