Xcode-beta (7A192o): Test Cases Missing in Xcode Test Navigator

Originator:john
Number:rdar://22595486 Date Originated:06-Sep-2015 09:26 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A192o)
Classification:Other Bug Reproducible:Sometimes
 
Summary:
I have several Swift projects that have suffered from test cases not being discovered by Xcode. They will often appear as runtime-discovered tests and will appear and disappear in the test navigator seemingly at random. I think part of the problem is that I have a framework that provides custom subclasses of XCTestCase for common test types, and that seems to be confusing Xcode. I’ve replaced those subclasses with a protocol and made the real test cases inherit directly from XCTestCase, and that has made them appear in the sidebar much more reliably.

I have not been able to reproduce this in a sample project; it may require that the custom test case classes be in a framework, or it may be particular to the way I have created them. 

Steps to Reproduce:

Expected Results:

Actual Results:

Regression:

Notes:

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!