Test run buttons for dynamic test invocations are missing

Originator:bruno
Number:rdar://21872766 Date Originated:17-Jul-2015 02:06 PM
Status:Closed Resolved:Duplicate of 9017454.
Product:Developer Tools Product Version:Xcode 7 Beta 3 (7A152u)
Classification:UI/Usability Reproducible:Always
 
Summary:
Methods and closures that dynamically invoke a test should also get a test run button.

Many third-party libraries which make creating specific types of tests easier use dynamic test invocations to work. However, it currently is less convenient to use these, since you can’t tap a test run button to run an individual test. 

Steps to Reproduce:
1. Unzip attachment.
2. Open Example / NWAAlertController.xcworkspace.
3. Open Tests / QuickTests.swift

Expected Results:
There should be test run buttons for every closure containing an `expect` statement and for the `spec()` (line 9) and `describe()` (line 13).

Actual Results:
No test run buttons exist.

Regression:
n/a

Notes:
As an added note, when you open XCTestTests.swift, you can see that `dynamicTest()` (line 56) and `dynamicTest2()` (line 61) don’t have test run buttons either. 
Code can also be found at https://github.com/SpacyRicochet/NWAAlertController/commit/614ba237007bcf86d9910cfeaecb3509d66cde3b

Comments

Marked and closed as dupe of rdar://9017454.

Relevant issue on Github

This radar was inspired by an issue on Quick on Github: https://github.com/Quick/Quick/issues/293


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!