I decided to try GHUnit because my unit tests need some UI elements in order to pass and GHUnit allows UI testing on iOS.
Now I need to run the tests on device. The only way I could find from your instructions is to use command line but then the UI doesn't start and my tests fail (or did I miss something?).
I managed to install my app (with GHUnit) on device automatically, start it and run the tests automatically (so with GUI). Now my remaining issue is how to output the results?
If I pass the environment variables in the xcode build command, they are not taken into consideration:
WRITE_JUNIT_XML=1 JUNIT_XML_DIR=tmp/olivia xcodebuild clean build -project "${UNITTEST_DIR}/$UNIT_TEST_APP/$UNIT_TEST_APP.xcodeproj" -target "Tests" etc...
How can I run the GUI on HW and still output xml files?
I do everything automatically with Jenkins job and shell scripts. I cannot use Xcode.
Thanks for your help!