I've already setup UITest target with 1 test function
func testExample() throws {
let app = XCUIApplication()
app.launch()
}
then I wanna run UITest target without cmd+u and I've found that we can run Unit test successfully from main target by adding this code
let suite = XCTestSuite.default
for test in suite.tests {
test.run()
}
but when I try the same way on UITest my testExample failed and I've got this error
Assertion failure in -[XCUIApplication init], XCUIApplication.m:90
No target application path specified via test configuration: (null) (NSInternalInconsistencyException)