Open karstenlitsche opened 6 years ago
When creating a test target with „target.test_target "MyAppUITests" do …“ the resulting target seems to be a unit test target and not a ui test target. After executing the default test case (created by new projects) it results in an error.
class MyAppUITests: XCTestCase { override func setUp() { super.setUp() continueAfterFailure = false XCUIApplication().launch() // <— error } override func tearDown() { super.tearDown() } func testExample() { } }
caught "NSInternalInconsistencyException", "No target application path specified via test configuration: <XCTestConfiguration: 0x7f9d5d003a00> testBundleURL:file:///Users/xxx/Library/Developer/Xcode/DerivedData/XXX-bklyihcfcdaewthgfqnbgffnhgnb/Build/Products/Debug-iphonesimulator/MyAppUITests.xctest/ testBundleRelativePath:(null) productModuleName:MyAppUITests testsToSkip:(null) testsToRun:MyAppUITests/testExample reportResultsToIDE:YES sessionIdentifier:B4F9972B-…-71257DD4B42C pathToXcodeReportingSocket:(null) disablePerformanceMetrics:no treatMissingBaselinesAsFailures:no baselineFileURL:(null) baselineFileRelativePath:(null) targetApplicationPath:(null) targetApplicationBundleID:(null) testApplicationDependencies:(null) testApplicationUserOverrides:(null) targetApplicationArguments: targetApplicationEnvironment:(null) reportActivities:YES testsMustRunOnMainThread:no initializeForUITesting:no aggregateStatisticsBeforeCrash:{ XCSuiteRecordsKey = { }; } automationFrameworkPath:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework emitOSLogs:no systemAttachmentLifetime:1 userAttachmentLifetime:1 "
See: https://stackoverflow.com/a/32706701 for a reason of this error.
Is it possible that Phoenx currently do not support UI Test targets?
When creating a test target with „target.test_target "MyAppUITests" do …“ the resulting target seems to be a unit test target and not a ui test target. After executing the default test case (created by new projects) it results in an error.
See: https://stackoverflow.com/a/32706701 for a reason of this error.
Is it possible that Phoenx currently do not support UI Test targets?