Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITest Target seems not supported #44

Open
karstenlitsche opened this issue Jan 23, 2018 · 0 comments · May be fixed by #47
Open

UITest Target seems not supported #44

karstenlitsche opened this issue Jan 23, 2018 · 0 comments · May be fixed by #47

Comments

@karstenlitsche
Copy link

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?

ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
ObjectAlchemist pushed a commit to ObjectAlchemist/Phoenx that referenced this issue Mar 25, 2018
@ObjectAlchemist ObjectAlchemist linked a pull request Mar 25, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant