+ (XCTestSuite *)defaultTestSuite does not get called
| Originator: | thomas | ||
| Number: | rdar://21372779 | Date Originated: | 13-Jun-2015 03:01 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: | Always |
Summary: +defaultTestSuite should get called before an XCTestCase get's run to give the test the opportunity to add tests dynamically. This works fine when running all tests (Product -> Test, or Command+U) but in Xcode 7 it does +defaultTestSuite does no longer get called when the test in ran from either the test navigator or the using the little "play" button in the code editor next to the test. (For both the test function and the test class) Steps to Reproduce: 1. Install XCode 2. Unpack and open the attached project 3. Go to the "Test Navigator" and run "DemoProjectTests" (Do not use command+u or Product->Test) Expected Results: The demo unit test passes because defaultTestSuiteCalled should be set to true when +defaultTestSuite was called. Actual Results: + defaultTestSuite does not get called. Version: Xcode: 7.0 Beta (7A120f) OSX: 10.11 (15A178w) Notes: Configuration: Attachments: 'DemoProject.zip' was successfully uploaded.
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!