[Xcode 7.3 7D111g] xcodebuild UI Testing logging not appearing in Terminal (no XCTRunner output)
| Originator: | richard.yeh | ||
| Number: | rdar://24195682 | Date Originated: | 1-14-16 |
| Status: | Dupe of 24190547 (Closed) | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 7.3 beta (7D111g) |
| Classification: | Serious Bug | Reproducible: |
Summary:
After upgrading to Xcode 7.3 beta 1, the UI Testing output from XCTRunner is no longer being printed to stdout. There is no information from the UI Tests indicating which test cases/suites passed or failed, nor is there the usual XCTRunner log of the UI steps being taken during the tests.
If this was an intentional change, there needs to be a way to export test results so that UI Testing is able to be integrated with CI systems.
Related: rdar://24184959
Steps to Reproduce:
Terminal: xcodebuild -workspace 'MyApp.xcworkspace' -scheme 'MyApp Debug' -destination 'id=${id}' clean test
Expected Results:
The full xcodebuild stdout: Clean, then stderr output (below), Build, Codesign, and the Test output (XCTRunner log of the Test Suites, Test Cases, and the individual steps taken in each Test Case).
stderr: xcodebuild[...] [MT] IDETestOperationsObserverDebug: (...) Beginning test session ... with Xcode 7D111g on target <DVTiOSDevice: ...> {}
Actual Results:
No XCTRunner output in Terminal. stdout output ends with codesigning of MyAppUITests-Runner.app. stderr does display **TEST FAILED**, that is the last statement.
Prior to that stderr also prints some MDMCreateDeltaDirectory and __MDMDirectoryDiff_block_invoke37 commands while the tests are running, and xcodebuild prints some iPhoneConnect statements.
Version:
Version 7.3 beta (7D111g)
Notes:
~/Library/Developer/Xcode/DerivedData/MyApp-{...}/Logs/Test does contain new TestSummaries.plist files, and the Attachments also contains new screenshots and other test files. So logging is getting written somewhere, just not in a form that's easily exportable.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!