How to mock data in UITest on Xcode 7?
问题 Someone has tried to include mock data with the new Xcode 7 UI tests? Have you used an specific framework? How have you managed targets? 回答1: I think there are a lot of ways to approach this one - the difficulty is that Apple has intentionally designed UITests to run entirely separate from the app under test. That said, there are a few hooks you can use to coordinate logic in the app with logic in your tests to feed in mock data or alter the behavior of your app in any way. The two I have