1
votes

How would you set up regression tests that mock UITouches?

I am developing an iOS-game and want to have some regression tests for core functionality. I would need to trigger calls to touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event etc. automatically for a fixed list of fake touches then I could automatically evaluate the test result.

1

1 Answers

1
votes

There is no public constructor, but people have found a way, see

http://www.cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html