I'm trying to test an extension with XCUITest, and I've written a test app to invoke our app's import extension. Whenever I automate tapping the action sheet to invoke the extension, it returns to the view controller without even attempting to load the extension. No error is thrown.
However, if *I* physically tap the button to invoke the extension in the simulator (or on device) while the test is running, the automation will continue to run and interact with the extension as expected.
What is the trick to loading an extension within XCUITest?
I've answered my own question here: http://stackoverflow.com/questions/34396045/testing-action-extension-with-ui-tests/36212000#36212000
Basically you have to tap the screen at the position of the button that launches your extension to get it to launch.