Test setup: a Windows PC and an iOS device connected by USB. Inside the device there is a MyAppUITests application that holds all XCTest-based UI tests required to test some UI-related things on this device. The question is: how to run this app so that it will actually perform tests and collect debug console output?
I am aware that there is a libimobiledevice lib that allows me to do this:
idevicedebug -u [udid] -e [some_env_variables] run [bundle_id]
But as far as I understand, this tool doesn't start a special UI test runner (as it described in this WWDC video) which in turn does all the automated UI testing and produces debug output.
I know that Xcode can do that via GUI or via xcodebuild
utility like this:
xcodebuild -project myapp.xcodeproj -scheme "MyAppUITests" \
-destination 'platform=iOS,name=MyTestDevice' test
And Xcode knows the magic trick on how to run test manager daemon that will run my UI tests correctly.
Is there a way to run my UI testing app through UI test using libimobiledevice or any other 3rd party tool available on Windows platform?