I am using Xcode7 to write UITest, the problem is I need to wait for all the steps to happen before I validate the actual result. This takes a lot of time with all with view controller pushing/presenting/dimissing.
Is there a way through which I can disable the animation while writing the test?
How to Run XCUI Tests on XCode. To run the XCUITests on XCode, you can click the highlighted icon below to see your newly created UI Test targets. You can hover on the “testExample()” test case and click the “Play” icon to run that specific test to see if everything was set up properly.
You can disable animations for the entire app with:
[UIView setAnimationsEnabled:NO];
This will carry over to running your UI Tests as well. Note that this must be called from the application code, not the tests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With