How to configure IOS UI tests as assembly dependency like OCUnit?

I would like to add user interface tests to an iOS project in the same way as OCUnit tests. I know there is a JavaScript + UIAutomation JavaScript approach, but I don’t see how this fits into the automated build workflow. Can you install the "Tools + UIAutomation" scripts, for example, as a build dependency?

Secondly, I would rather write UI tests in the same language as the rest of the code ... Are there any alternatives / things that I am missing?

Thanks.

Martine

+4
source share
2 answers

In fact, you can use OCUnit to test the user interface.

If you are already familiar with OCUnit, this piece of code is a good start: How to perform UI testing of iOS applications using OCUnit

You can automatically run these tests using xcodebuild . It is not easy, but worth the extra work. I recommend taking a look at this post: Xcode4: running application tests from the command line in iOS

Now UIAutomation can also be automated with instruments , but the fact that you can now run your user interface tests using OCUnit makes it less interesting.

+1
source

Check out FoneMonkey on Gorilla Logic. This may be what you are looking for.

0
source

All Articles