Ok, I’ve not been able to run this test in any betas so far. Some of the issues I’ve encountered are here and here
Now, I feel like I’m missing something.
Here’s my progress so far
- Enabled “UI testing” option while creating a new project. This, in fact adds a target for me. So I should be good to go - or so I thought.
- The swift file under UI Testing had already “XCTest” imported and was a subclass of “XCTestCase”.
- setup() launches the application
- And I added the following (by hitting the Record button)
And then, I ran this test.
The whole thing fails even before the test is called, right after launching app in setup() with the following
*** Assertion failure in -[XCUIApplication init], /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-8170.3/XCTestFramework/UI Testing/XCUIApplication.m:76
/Users/UserName/Documents/Projects/Testing/UiTesting/UITestingApp/UITestingApp.swift:0: error: -[UITestingApp.UITestingApp testSimpleTap] : failed: caught "NSInternalInconsistencyException", "No target application path specified via test configuration:
sessionIdentifier:<__NSConcreteUUID 0x7f93e146c0b0> F242796B-ED26-4AA7-861A-540D2D93CB8F
Anyone run into this or has any suggestions on what I might be missing?
Note: I did set the “Target Application” of the UI Testing target to my app
Update: I noticed this is applicable to all beta/final releases of Xcode - updated title accordingly