"Record UI Test" disabled with multiple XCTestCase class per file
Originator: | t.camin | ||
Number: | rdar://26970542 | Date Originated: | 23-Jun-2016 12:29 PM |
Status: | Open | Resolved: | NO |
Product: | Developer Tools | Product Version: | 7* and 8beta1 |
Classification: | Reproducible: | Always |
Summary: As per title, if the source file for an UI Tests contains more than one XCTestCase class the "Record UI Test" becomes disabled. Attached find an example with 3 UI Test source files that show the broken behaviour. UITestSubclassDemoUITestsThatWorks (OK) file contains one XCTestCase, an extension of it and one AnyObject subclass. UITestSubclassDemoUITestThatDoNotWork (KO) file contains one XCTestCase and a subclass of it UITestSubclassDemoUITestThatDoNotWork2 (KO) file contains two XCTestCase Steps to Reproduce: 1. Open the attached sample 2. Open the UITestSublassDemoUITests Group 3. Wait for Xcode to index test files Test methods in UITestSubclassDemoUITestsThatWorks.swift can be recorded. Test methods in UITestSubclassDemoUITestThatDoNotWork.swift and UITestSubclassDemoUITestThatDoNotWork2.swift can NOT be recorded. Expected Results: I should be able to record a test even if a UI Test source file contains more than one XCTestCase class Actual Results: As soon a Xcode reindexes a UI Test source file that contains more than one XCTestCase the "Record UI Test" button becomes disabled. Version: Any Xcode 7 and Xcode 8 beta 1 (8S128d)
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!