We are in the process of automating build, test, and deployment of our app. We're doing it from a Mac, and we chose to use FAKE (F# make) for the time being. We are planning to integrate our build scripts into TeamCity, but we're not at that point yet.
Following this fine tutorial: http://www.pluralsight.com/courses/xamarin-continuous-integration-teamcity-fake
we put together a build script, which builds our app and our UI tests. The issue is that the NUnit framework doesn't start our UI tests from within the script, and the iOS simulator doesn't launch (even though it is open, and our app is loading into it, manually).
Our scripts are attached (without the .txt ext). From the console we just say: ./build.sh ios-uitests to launch the tests. The app is built, but the tests are not launched...
Now, if we run the actual command that launches the tests from the console, it works. Like this:
"/Library/Frameworks/Mono.framework/Versions/Current/bin/nunit-console4" "MyApp.UITests/bin/Release/MyApp.UITests.dll" "MyApp.UITests/bin/Release/testresults.xml"
Then NUnit launches the simulator and UI tests run.
What would prevent the UI tests from running from the script? (I tried running script with sudo).